Survey banner
The Dataiku Community is moving to a new home! We are temporary in read only mode: LEARN MORE

How to set the weighting strategy for a regression task , using API

Solved!
MNOP
Level 3
How to set the weighting strategy for a regression task , using API

Hi, 
I'm working on a regression task. I'm using the API to automate the model-building cycle. 
I want to use the "sample weights" weighting strategy and the "year" column as the weights. How do I achieve this using the API?

0 Kudos
1 Solution
AdrienL
Dataiker

You can use DSSPredictionMLTaskSettings#set_weighting, e.g. on the Visual ML usage examples, that'd be on the settings object.

View solution in original post

0 Kudos
1 Reply
AdrienL
Dataiker

You can use DSSPredictionMLTaskSettings#set_weighting, e.g. on the Visual ML usage examples, that'd be on the settings object.

0 Kudos