Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jun 15, 2024
1 parent 7429274 commit 0f535aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion matsim/scenariogen/ml/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def model_to_java(name, package, model_and_error: tuple, scaler, bounds, df):
def model_to_py(name, model_and_error, scaler, df):
import m2cgen as m2c

code = m2c.export_to_python(model[0], function_name="score")
code = m2c.export_to_python(model_and_error[0], function_name="score")

code, params = replace_params(code)

Expand Down
2 changes: 1 addition & 1 deletion matsim/scenariogen/ml/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def write_python(self, folder, name):

# TODO: bounds not implemented

code = model_to_py(t, self.best, self.scaler, self.get(None)[0])
code = model_to_py(name, self.best, self.scaler, self.get(None)[0])
f.write("# -*- coding: utf-8 -*-\n")
f.write("\"\"\"%s\nError: %f\"\"\"\n" % self.best)
f.write(code)

0 comments on commit 0f535aa

Please sign in to comment.