v2

latestOpenAPI 3.0.1Apache 2.02026-07-2623201.3 MB
Portfolio Optimization
post/portfolios/optimization/supervised/nearest-neighbors-based

Request body

assetsinteger required

The number of assets

nearestNeighborsForecastMethod'kMean' | 'kStar' | 'kEnsemble'

The forecast method used to determine the label of an inference point

nearestNeighborsinteger

The number of nearest neighbors used to determine the label of an inference point when nearestNeighborsForecastMethod is equal to 'kMean'

nearestNeighborsDistanceMetric'euclidean' | 'hassanat'

The distance metric used to compute the nearest neighbors of an inference point

Response

OK