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

[BUG]Lightgbm classifier cannot get training results after setting verbosity=1 & isProvideTrainingMetric=True #2269

Open
4 of 19 tasks
stupidoge opened this issue Aug 27, 2024 · 3 comments

Comments

@stupidoge
Copy link

stupidoge commented Aug 27, 2024

SynapseML version

1.4.0

System information

  • Language version (e.g. python 3.8, scala 2.12):
    scala 2.1.2, python3.10.2
  • Spark Version (e.g. 3.4.1):
    3.4.1
  • Spark Platform (e.g. Synapse, Databricks):
    Databricks

Describe the problem

cannot see the training results or loss curve after setting verbosity and isProvideTrainingMetric

Code to reproduce issue

lgbm_assembler = VectorAssembler(inputCols=feature_cols, outputCol="features")
lgbm = LightGBMClassifier(
    objective="binary",
    numIterations=100,
    learningRate=0.1,
    isUnbalance=True,
    featuresCol="features",
    labelCol="label",
    isProvideTrainingMetric=True, 
    metric="auc",
    verbosity=1
)

pipeline = Pipeline(stages=[lgbm_assembler, lgbm])
model = pipeline.fit(train_data)
predictions = model.transform(val_data)

Other info / logs

No response

What component(s) does this bug affect?

  • area/cognitive: Cognitive project
  • area/core: Core project
  • area/deep-learning: DeepLearning project
  • area/lightgbm: Lightgbm project
  • area/opencv: Opencv project
  • area/vw: VW project
  • area/website: Website
  • area/build: Project build system
  • area/notebooks: Samples under notebooks folder
  • area/docker: Docker usage
  • area/models: models related issue

What language(s) does this bug affect?

  • language/scala: Scala source code
  • language/python: Pyspark APIs
  • language/r: R APIs
  • language/csharp: .NET APIs
  • language/new: Proposals for new client languages

What integration(s) does this bug affect?

  • integrations/synapse: Azure Synapse integrations
  • integrations/azureml: Azure ML integrations
  • integrations/databricks: Databricks integrations
@stupidoge
Copy link
Author

@svotaw @imatiach-msft Hi all, would you mind solving this issues? I thought you mentioned we could use some log function, but now, I cannot see any related functions.

@sohaibsyed21
Copy link

@stupidoge did you ever find a fix? I ran a model with verbosity=1 and after a long run saw no output, version 1.0.4. @svotaw @imatiach-msft any updates please?

@stupidoge
Copy link
Author

@sohaibsyed21 not fixed.. they don't add this function to this api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants