/xgp

:crystal_ball: Symbolic regression library

Primary LanguageGoMIT LicenseMIT


documentation godoc build_status coverage_status license

XGP is a machine learning library for performing symbolic regression. It can be used both for regression and classification tasks. Please refer to the documentation for an in-depth introduction to symbolic regression.

Interfaces

The core library is written in Go but it can be used in different ways:

Usage examples

Command-line interface (CLI)

>>> xgp fit train.csv
>>> xgp predict test.csv

Go

package main

import "github.com/MaxHalford/xgp"

func main() {
    config := xgp.NewDefaultGPConfig()
    estimator := config.NewGP()

    estimator.Fit(XTrain, YTrain)
    yPred := estimator.Predict()
}

Python

import xgp

model = xgp.XGPRegressor()

model.fit(X_train, y_train)
y_pred = model.predict(X_test)

Dependencies

The core of XGP has the following dependencies.

License

The MIT License (MIT). Please see the LICENSE file for more information.