Skip to content

Logistic Regression-patch2 #3377

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

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

darksapien23151
Copy link

🛠 Summary

Logistic Regression-ver2

@mzegla mzegla self-assigned this Jun 10, 2025
@mzegla mzegla added the GSoC Contributions that are part of Google Summer of Code projects label Jun 10, 2025
Comment on lines +41 to +42
if inp_bytes[:1] != b'{' and inp_bytes.find(b'{') > 0:
first_brace = inp_bytes.find(b'{')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I can see you run find twice. I suppose you can run it once before the check and store the value.
Also I'm not sure if you need first part of the condition: inp_bytes[:1] != b'{'. If you search entire inp_bytes with find, there's no need for a separate check I guess.

from sklearn.utils import shuffle
import os

os.makedirs("data_folder", exist_ok=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's not implicitly create directories in user filesystem. Instead we could accept script parameter with path to the catalog where we would save the data.

Comment on lines +3 to +5



Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for so many newlines

Comment on lines +11 to +12

WORKDIR /workspace
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
WORKDIR /workspace

That's obsolete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GSoC Contributions that are part of Google Summer of Code projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants