Skip to content

CLI --init-model parameter #2680

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

faucct
Copy link
Contributor

@faucct faucct commented May 30, 2024

I am sorry about not doing the following steps right now and will do them tomorrow, but I wanted to show this and gather some feedback in advance.
I am exposing this parameter, so it would be possible to implement checkpoints in (or outside of) ai.catboost.spark.CatBoostPredictorTrait#fit for it to be durable to our Spark cluster freeing spot-VMs.

Before submitting a pull request, please do the following steps:

  1. Read instructions for contributors.
  2. Make sure the code builds.
  3. If you add new functionality add tests to check it.
  4. Run existing tests to make sure you haven't broken anything.
  5. If you haven't already, sign the Contributor License Agreement.

@faucct
Copy link
Contributor Author

faucct commented May 31, 2024

I have failed to compile it on my ARM Mac because of #2503.

@@ -76,6 +76,10 @@ void BindQuantizerPoolLoadParams(NLastGetopt::TOpts* parser, NCatboostOptions::T
void BindPoolLoadParams(NLastGetopt::TOpts* parser, NCatboostOptions::TPoolLoadParams* loadParamsPtr) {
BindQuantizerPoolLoadParams(parser, loadParamsPtr);

parser->AddLongOption("init-model", "Init model path")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

could you please add a test to catboost/pytest to check that train + init-model = train + baseline, where baseline = init-model(train data)?

could you please also add a paragraph about init-model somewhere in catboost/doc/en?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you talking about the --baseline-model-snapshot option? Maybe this is enough and I don't need a new option.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@faucct faucct force-pushed the feature/cli-init-model-parameter branch from 91f83db to 9e96402 Compare August 20, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants