-
Notifications
You must be signed in to change notification settings - Fork 216
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
base: main
Are you sure you want to change the base?
Logistic Regression-patch2 #3377
Conversation
Co-authored-by: Miłosz Żeglarski <milosz.zeglarski@intel.com>
Co-authored-by: Miłosz Żeglarski <milosz.zeglarski@intel.com>
if inp_bytes[:1] != b'{' and inp_bytes.find(b'{') > 0: | ||
first_brace = inp_bytes.find(b'{') |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
|
||
|
||
|
There was a problem hiding this comment.
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
|
||
WORKDIR /workspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WORKDIR /workspace |
That's obsolete
🛠 Summary
Logistic Regression-ver2