Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added random_state as an available hyper parameter for xgboost models#659

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
montanalow merged 1 commit intopostgresml:masterfromSilasMarvin:set-random-seed-for-xgboost
May 29, 2023
Merged

Added random_state as an available hyper parameter for xgboost models#659

montanalow merged 1 commit intopostgresml:masterfromSilasMarvin:set-random-seed-for-xgboost
May 29, 2023

Conversation

@SilasMarvin
Copy link
Contributor

I followed the standard found throughout the repo and just calledunwrap on line 166. This does have the potential to cause somewhat confusing error messages if they have malformed arguments. I would be happy to go through and replace theunwrap() calls withexpect(SOME HELPFUL ERROR MESSAGE) throughout pgml-extension if that would be helpful?

@montanalow
Copy link
Contributor

You're right.expect() is preferable tounwrap(), but rather than trying to convert all existing cases, I think it'd be better to try to move most functions that currentlyunwrap to instead return ananyhow::Result, and addcontext() to their calls for better nested function call clarity.

I think the currenttransformer bindings fortransform andembed are the worst offenders with the mostly likely failure cases, and the scikit algorithm's are probably second worst on that front.

SilasMarvin reacted with thumbs up emoji

@montanalowmontanalow merged commit484b2fc intopostgresml:masterMay 29, 2023
@SilasMarvinSilasMarvin deleted the set-random-seed-for-xgboost branchMay 30, 2023 00:07
@levkklevkk mentioned this pull requestJun 1, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@montanalowmontanalowmontanalow approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@SilasMarvin@montanalow

[8]ページ先頭

©2009-2025 Movatter.jp