Skip to content

Assignment1#1

Open
BitaEt wants to merge 4 commits into
masterfrom
assignment1
Open

Assignment1#1
BitaEt wants to merge 4 commits into
masterfrom
assignment1

Conversation

@BitaEt
Copy link
Copy Markdown
Owner

@BitaEt BitaEt commented Sep 9, 2022

Python code should be in Assignment1.py file

Comment thread Assignment1.py
Comment thread Assignment1.py
#Other models - SVC and Logistic Regression
svclassifier = SVC(kernel='poly', degree=8)
svclassifier.fit(X_train_sc, y_train)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Again the code runs fine here and everything ran right, but print out the values you get from the classifier.fit so we can see if the models are accurate or not

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Well the code includes confusion matrix for both models which shows accuracy, precision, recall and F1 score.

Comment thread Assignment1.py
fig4 = px.violin(df, y="PetalLengthCm", color="Species", violinmode='overlay', hover_data=df.columns)

fig5 = px.ecdf(df, x="SepalLengthCm", y="SepalWidthCm", color="Species", ecdfnorm=None)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

do fig1.show(),fig2.show(), etc so we can see the plots. the code runs fine but they don't show up unless you have them

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Thanks for the note! I commented fig.show() to the code.

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.

2 participants