Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
op
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md



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.

You can’t perform that action at this time.