mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection these were generated from was a month old and predated the compute migration, so every one of them described /v1/visor — which the API serves at zero paths now. That is why a hand-written console client and a generated one had drifted the same way at the same time. No /v1/visor path survives here. The word still appears as a source-plane value and inside gvisor and supervisor, which are not this rename.
151 lines
4.1 KiB
C++
151 lines
4.1 KiB
C++
/**
|
|
* Hanzo Cloud API
|
|
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
*
|
|
* The version of the OpenAPI document: v1
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* RiskSplitCounts.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_RiskSplitCounts_H_
|
|
#define HANZO_MODEL_RiskSplitCounts_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class RiskSplitCounts
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
RiskSplitCounts();
|
|
virtual ~RiskSplitCounts();
|
|
|
|
/////////////////////////////////////////////
|
|
/// ModelBase overrides
|
|
|
|
void validate() override;
|
|
|
|
web::json::value toJson() const override;
|
|
bool fromJson(const web::json::value& json) override;
|
|
|
|
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
|
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// RiskSplitCounts members
|
|
|
|
|
|
/// <summary>
|
|
/// Judged is how many rows carry a disposition. It is zero until a label plane writes one, and reporting it plainly is what lets a model plane refuse to rank rather than name a winner it cannot justify.
|
|
/// </summary>
|
|
int64_t getJudged() const;
|
|
bool judgedIsSet() const;
|
|
void unsetJudged();
|
|
void setJudged(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Productive is how many judged rows carry the one disposition.
|
|
/// </summary>
|
|
int64_t getProductive() const;
|
|
bool productiveIsSet() const;
|
|
void unsetProductive();
|
|
void setProductive(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Rows is how many rows the version holds across every split. It is the size of the version, not of the source window — the horizon, the cuts and the row cap all bind before this number.
|
|
/// </summary>
|
|
int64_t getRows() const;
|
|
bool rowsIsSet() const;
|
|
void unsetRows();
|
|
void setRows(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Subjects is how many distinct subjects the rows belong to. Every row of one subject is in ONE split, so this is the real sample size — the row count flatters it whenever a subject is active.
|
|
/// </summary>
|
|
int64_t getSubjects() const;
|
|
bool subjectsIsSet() const;
|
|
void unsetSubjects();
|
|
void setSubjects(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Test is how many fall after the second cut — the LATEST slice, and the only one a score is honest about, since the split is temporal.
|
|
/// </summary>
|
|
int64_t getTest() const;
|
|
bool testIsSet() const;
|
|
void unsetTest();
|
|
void setTest(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Train is how many rows fall before the first cut — the EARLIEST slice of the window, which is what a model is fitted on.
|
|
/// </summary>
|
|
int64_t getTrain() const;
|
|
bool trainIsSet() const;
|
|
void unsetTrain();
|
|
void setTrain(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Unproductive is how many carry the other. With Productive it accounts for Judged, so the class imbalance is visible before anyone trains on it; both stay 0 while Judged is 0.
|
|
/// </summary>
|
|
int64_t getUnproductive() const;
|
|
bool unproductiveIsSet() const;
|
|
void unsetUnproductive();
|
|
void setUnproductive(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Val is how many fall between the two cuts, held out for tuning.
|
|
/// </summary>
|
|
int64_t getVal() const;
|
|
bool valIsSet() const;
|
|
void unsetVal();
|
|
void setVal(int64_t value);
|
|
|
|
|
|
protected:
|
|
int64_t m_Judged;
|
|
bool m_JudgedIsSet;
|
|
|
|
int64_t m_Productive;
|
|
bool m_ProductiveIsSet;
|
|
|
|
int64_t m_Rows;
|
|
bool m_RowsIsSet;
|
|
|
|
int64_t m_Subjects;
|
|
bool m_SubjectsIsSet;
|
|
|
|
int64_t m_Test;
|
|
bool m_TestIsSet;
|
|
|
|
int64_t m_Train;
|
|
bool m_TrainIsSet;
|
|
|
|
int64_t m_Unproductive;
|
|
bool m_UnproductiveIsSet;
|
|
|
|
int64_t m_Val;
|
|
bool m_ValIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_RiskSplitCounts_H_ */
|