microsoft / SynapseML

Simple and Distributed Machine Learning
http://aka.ms/spark
MIT License
5.04k stars 830 forks source link

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

Open stupidoge opened 2 weeks ago

stupidoge commented 2 weeks ago

SynapseML version

1.4.0

System information

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?

What language(s) does this bug affect?

What integration(s) does this bug affect?

stupidoge commented 2 weeks ago

@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.