[go: nahoru, domu]

Skip to content

Use OT metamodels trough sklearn estimator API

License

Notifications You must be signed in to change notification settings

openturns/otsklearn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/openturns/otsklearn/actions/workflows/build.yml/badge.svg?branch=master

otsklearn

Simple module to use OT surrogate models with the scikit-learn estimator API (fit/predict) Currently it's more a proof of concept, not ready for production use.

Examples

>>> from otsklearn import FunctionalChaos
>>> from sklearn import datasets
>>> from sklearn.model_selection import GridSearchCV
>>> dataset = datasets.load_iris()
>>> parameters={'degree':[2,3,4]}
>>> estimator = FunctionalChaos()
>>> print(estimator.get_params())
>>> clf = GridSearchCV(estimator, parameters, scoring='r2')
>>> clf.fit(dataset.data, dataset.target.reshape(-1,1))
>>> print(clf.best_estimator_)

About

Use OT metamodels trough sklearn estimator API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages