python learner editable setting
In the documentation, there is;
Description
The behavior of this operator is defined by a Python script which depending on the operator configuration can be edited by the user.
If the operator is editable, the parameter panel features a set of buttons at the top of the parameter list that allow to edit the declaration (e.g., capabilities and parameter types) and the Python script, as well as to save the configuration as template.
If the operator is not editable, you can check the operator capabilities to learn more about the inputs supported by the preconfigured Python script.
Tutorial Process
Classification and regression in a single Python Learner
This example shows how to create a single Python Learner, that supports both classification and regression, and can handle nominal features. In other words, a Python Leaner that behaves very similar to RapidMiner's builtin learners.
{ "name" : "LightGBM", "editable" : false, "dropSpecial" : true, "capabilities" : [ "numerical attributes", "binominal attributes", "polynominal attributes", "polynominal label", "binominal label", "numerical label" ], "parameters" : [ { "name" : "boosting_type", "type" : "category", "description" : "Types: ‘gbdt’, traditional Gradient Boosting Decision Tree. ‘dart’, Dropouts meet Multiple Additive Regression Trees. ‘goss’, Gradient-based One-Side Sampling. ‘rf’, Random Forest.", "categories" : [ "gbdt", "dart", "goss", "rf" ], "value" : "gbdt", "optional" : true, "advanced" : false }
I believe "editable" paremeter is to set the operator editable.
"editable" : false,
I have changed the parameter from `false` to `true` but it seems nothing has been changed.
I was wondering how to set the operator editable and what the the parameter "editable" in the declaration.
And also, once the oprator is set to editable false, how can I clear?
Best Answer
-
koichi Member Posts: 18 Learner IThank you for your reply. I'm going to try. If there is another issue, I'll come back.
0
Answers
- Start with the unmodified LightGBM tutorial process
- Save the operator configuration in the repository (using the Save button next to the Edit Python Script button)
- Change the editable field in the JSON snippet to true
- Save the modified operator configuration in the repository (under a different name)
- Drag both configuration files from the repository onto the canvas
You should get two operators both named LightGBM: one with the configuration control disabled, and one with the configuration controls enabled.