Skip to content

Commit

Permalink
Fix classical methods
Browse files Browse the repository at this point in the history
  • Loading branch information
6sy666 committed Oct 3, 2024
1 parent e2b4c1a commit b1a6401
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions LAMDA_TALENT/configs/default/dummy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dummy": {
"model": {},
"fit": {}
}
}
8 changes: 8 additions & 0 deletions LAMDA_TALENT/configs/opt_space/LinearRegression.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"LinearRegression": {
"model": {

},
"fit": {}
}
}
8 changes: 8 additions & 0 deletions LAMDA_TALENT/configs/opt_space/NCM.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"NCM": {
"model": {

},
"fit": {}
}
}
8 changes: 8 additions & 0 deletions LAMDA_TALENT/configs/opt_space/NaiveBayes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"NaiveBayes": {
"model": {

},
"fit": {}
}
}
8 changes: 8 additions & 0 deletions LAMDA_TALENT/configs/opt_space/dummy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"dummy": {
"model": {

},
"fit": {}
}
}
6 changes: 6 additions & 0 deletions LAMDA_TALENT/model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,5 +818,11 @@ def get_method(model):
elif model == 'svm':
from model.classical_methods.svm import SvmMethod
return SvmMethod
elif model == 'dummy':
from model.classical_methods.dummy import DummyMethod
return DummyMethod
elif model == 'LinearRegression':
from model.classical_methods.lr import LinearRegressionMethod
return LinearRegressionMethod
else:
raise NotImplementedError("Model \"" + model + "\" not yet implemented")

0 comments on commit b1a6401

Please sign in to comment.