1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-26 13:49:14 +08:00
golearn/linear_models/integration.h
2020-07-14 23:19:30 +01:00

20 lines
609 B
C

#ifndef _H_INTEGRATION_
#define _H_INTEGRATION_
#include "linear.h"
struct problem *CreateCProblem();
void FreeCProblem(struct problem*);
struct model *CreateCModel();
void FreeCModel(struct model*);
struct parameter *CreateCParameter();
void FreeCParameter(struct parameter*);
// Allocates memory outside of golang for describing feature
// vectors.
int AllocateFeatureNodesForProblem(struct problem*, int, int);
int AllocateLabelsForProblem(struct problem *, int);
void AssignLabelForProblem(struct problem *, int, double);
struct feature_node *GetFeatureNodeForIndex(struct problem *, int, int);
#endif