Skip to content
Snippets Groups Projects
Commit cbad2309 authored by paul.tresson_ird.fr's avatar paul.tresson_ird.fr
Browse files

change default option to PCA for transform and KMeans for clustering

parent 49ef333b
No related branches found
No related tags found
No related merge requests found
......@@ -487,6 +487,7 @@ class SKAlgorithm(IAMAPAlgorithm):
maxValue=1024
)
)
default_index = self.method_opt.index('PCA')
else :
self.method_opt = get_sklearn_algorithms_with_methods(cluster, clust_methods)
self.addParameter(
......@@ -500,6 +501,7 @@ class SKAlgorithm(IAMAPAlgorithm):
maxValue=1024
)
)
default_index = self.method_opt.index('KMeans')
print(self.method_opt)
self.addParameter (
......@@ -507,7 +509,7 @@ class SKAlgorithm(IAMAPAlgorithm):
name = self.METHOD,
description = self.tr(
'Sklearn algorithm used'),
defaultValue = 0,
defaultValue = default_index,
options = self.method_opt,
)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment