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.
The core library is written in Go but it can be used in different ways:
>>> xgp fit train.csv
>>> xgp predict test.csv
package main
import "github.com/MaxHalford/xgp"
func main() {
config := xgp.NewDefaultGPConfig()
estimator := config.NewGP()
estimator.Fit(XTrain, YTrain)
yPred := estimator.Predict()
}
import xgp
model = xgp.XGPRegressor()
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
The core of XGP has the following dependencies.
- gonum/gonum for SIMD operations and calculating metrics
- gosuri/uiprogress for displaying progress bars
- MaxHalford/eaopt for the genetic algorithm part
The MIT License (MIT). Please see the LICENSE file for more information.