Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hints added #525

Merged
merged 3 commits into from
Feb 28, 2022
Merged

Type hints added #525

merged 3 commits into from
Feb 28, 2022

Conversation

DanielR59
Copy link
Contributor

Typing hints was added to automl.py for linting with VSCode

2022-02-28_08h02_10

Copy link
Contributor

@pplonski pplonski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for PR! looks fantastic!

Please see minor comments in the code.

def fit(
self,
X: Union[numpy.ndarray, pandas.DataFrame],
y: Union[numpy.ndarray, pandas.DataFrame],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

y should be Union[numpy.ndarray, pandas.Series]

@@ -503,6 +503,8 @@ def save(self, results_path, model_subpath):
"train_time": self.get_train_time(),
"is_stacked": self._is_stacked,
}
if type(desc["final_loss"]) == np.float32:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For solving #496 issue

@pplonski pplonski merged commit 31e9585 into mljar:master Feb 28, 2022
@pplonski
Copy link
Contributor

Thank you @DanielR59!!! Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants