Skip to content

Commit

Permalink
add laleMaximum constraints to cca
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnar committed May 4, 2021
1 parent 080b167 commit 5430b79
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions lale/lib/sklearn/cca.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@
"additionalProperties": False,
"properties": {
"n_components": {
"type": "integer",
"minimum": 1,
"minimumForOptimizer": 2,
"maximumForOptimizer": 256,
"distribution": "uniform",
"default": 2,
"description": "number of components to keep.",
"allOf": [
{
"type": "integer",
"minimum": 1,
"minimumForOptimizer": 2,
"maximumForOptimizer": 256,
"distribution": "uniform",
"laleMaximum": "X/items/maxItems", # number of columns (n_features)
},
{
"type": "integer",
"laleMaximum": "X/maxItems", # number of rows (n_samples)
},
],
},
"scale": {
"type": "boolean",
Expand Down

0 comments on commit 5430b79

Please sign in to comment.