Registry / other / liblinear

liblinear

JSON →
library249vcpkgunverified

A library for large-scale linear classification.

vcpkg install liblinear
INSTALL
IMPORT
SIG · LIBLINEAR
L
liblinear
othercppv249
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

linear.h
#include <linear.h>

Train a linear model and make a prediction.

#include <linear.h> #include <cstdio> int main() { struct problem prob; // Set up problem data (features, labels) struct parameter param; param.solver_type = L2R_LR; struct model* model = train(&prob, &param); double predict = predict(model, prob.x[0]); printf("%f\n", predict); free_and_destroy_model(&model); destroy_param(&param); return 0; }
Debug
Known issues
gotchaLIBLINEAR is a C library; C++ wrappers may be needed for RAII.
fix
Use manual memory management or wrap in C++ classes.
affects: all
Upgrade
Version history
249latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

liblinear — pip install liblinear · libregistry