Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初学者的疑惑。 #4

Closed
biebersong opened this issue Nov 8, 2024 · 2 comments
Closed

初学者的疑惑。 #4

biebersong opened this issue Nov 8, 2024 · 2 comments

Comments

@biebersong
Copy link

想问一下,在特征工程后选定最优的模型,能否用于Bgolearn,该怎么pre_fit(),没有看懂说明文档?

@biebersong
Copy link
Author

还有一个小问题,Bgolearn是否受特征的影响?

@biebersong biebersong closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2024
@Bin-Cao
Copy link
Owner

Bin-Cao commented Nov 8, 2024

hello, you can use your favourite model in Bgolearn by defining a model class:

class arb_model(object):
            def fit_pre(self,xtrain,ytrain,xtest):
                # instantiated model
                kernel = RBF()
                mdoel = GaussianProcessRegressor(kernel=kernel).fit(xtrain,ytrain)
                # defined the attribute's outputs
                mean,std = mdoel.predict(xtest,return_std=True)
                return mean,std   
Bgolearn.fit(data_matrix=x, Measured_response=y, virtual_samples=vs,  Kriging_model=arb_model)

The second question: of course, the feature set can influence fitting effects of ML models, thus has impact on Bgolearn’s preformance

@Bin-Cao Bin-Cao pinned this issue Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants