20 #include <raft/core/handle.hpp>
41 void olsFit(
const raft::handle_t& handle,
51 float* sample_weight =
nullptr);
52 void olsFit(
const raft::handle_t& handle,
62 double* sample_weight =
nullptr);
94 float* sample_weight =
nullptr);
107 double* sample_weight =
nullptr);
156 template <
typename T,
typename I =
int>
157 void qnFit(
const raft::handle_t& cuml_handle,
168 T* sample_weight =
nullptr,
193 template <
typename T,
typename I =
int>
207 T* sample_weight =
nullptr,
225 template <
typename T,
typename I =
int>
254 template <
typename T,
typename I =
int>
282 template <
typename T,
typename I =
int>
311 template <
typename T,
typename I =
int>
Definition: params.hpp:34
void gemmPredict(const raft::handle_t &handle, const float *input, size_t n_rows, size_t n_cols, const float *coef, float intercept, float *preds)
void olsFit(const raft::handle_t &handle, float *input, size_t n_rows, size_t n_cols, float *labels, float *coef, float *intercept, bool fit_intercept, bool normalize, int algo=0, float *sample_weight=nullptr)
void ridgeFit(const raft::handle_t &handle, float *input, size_t n_rows, size_t n_cols, float *labels, float *alpha, int n_alpha, float *coef, float *intercept, bool fit_intercept, bool normalize, int algo=0, float *sample_weight=nullptr)
void qnDecisionFunctionSparse(const raft::handle_t &cuml_handle, const qn_params ¶ms, T *X_values, I *X_cols, I *X_row_ids, I X_nnz, I N, I D, I C, T *coefs, T *scores)
Obtain the confidence scores of samples.
void qnDecisionFunction(const raft::handle_t &cuml_handle, const qn_params ¶ms, T *X, bool X_col_major, I N, I D, I C, T *coefs, T *scores)
Obtain the confidence scores of samples.
void qnFit(const raft::handle_t &cuml_handle, const qn_params ¶ms, T *X, bool X_col_major, T *y, I N, I D, I C, T *w0, T *f, int *num_iters, T *sample_weight=nullptr, T svr_eps=0)
Fit a GLM using quasi newton methods.
void qnFitSparse(const raft::handle_t &cuml_handle, const qn_params ¶ms, T *X_values, I *X_cols, I *X_row_ids, I X_nnz, T *y, I N, I D, I C, T *w0, T *f, int *num_iters, T *sample_weight=nullptr, T svr_eps=0)
Fit a GLM using quasi newton methods.
void qnPredict(const raft::handle_t &cuml_handle, const qn_params ¶ms, T *X, bool X_col_major, I N, I D, I C, T *coefs, T *preds)
Predict a GLM using quasi newton methods.
void qnPredictSparse(const raft::handle_t &cuml_handle, const qn_params ¶ms, T *X_values, I *X_cols, I *X_row_ids, I X_nnz, I N, I D, I C, T *coefs, T *preds)
Predict a GLM using quasi newton methods.
void normalize(value_t *data, value_idx n, size_t m, cudaStream_t stream)
Definition: utils.h:194
Definition: dbscan.hpp:30