Skip to content

Conversation

@BitaEt
Copy link
Owner

@BitaEt BitaEt commented Sep 9, 2022

Python code should be in Assignment1.py file

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

Copy link

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
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.

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

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
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.

3 participants