Skip to content

Commit

Permalink
PLS: Deprecate widget
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Feb 19, 2024
1 parent ff7c581 commit e9aa1cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orangecontrib/spectroscopy/widgets/owpls.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ class Outputs(OWBaseLearner.Outputs):

class Warning(OWBaseLearner.Warning):
sparse_data = Msg('Sparse input data: default preprocessing is to scale it.')
deprecated = Msg('The PLS widget is deprecated and will be removed in the future.\n'
'You can use a PLS widget in the core Orange instead.')

n_components = Setting(2)
max_iter = Setting(500)

def add_main_layout(self):
self.Warning.deprecated()

self.optimization_box = gui.vBox(
self.controlArea, "Optimization Parameters")
Expand Down

0 comments on commit e9aa1cc

Please sign in to comment.