Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I want to plot similar Graph in python. it is basically binary classifiers accuracy report of benign and malicious/attack dataset. there is one benign file and 10 attack files. each attack is combined with the benign file and three classifiers are used to perform classification. the question is how to plot it in python. here is the example image
classifiers accuracy on with each attack and benign data
I got the solution and it is very simple.
i stored each model accuracy with all attacks in simple array
store name of each attack in array x
and accuracy with array y1,y2,y3
this blog help me to plot the results
https://www.w3resource.com/graphics/matplotlib/basic/matplotlib-basic-exercise-5.php
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 days ago.
Improve this question
iam currently learn about deeplearning with pytorch and keras. iam interested to create automatic ecg digitization from recorded paper.
well, iam not pretty sure, but the best algorithm to do this are through Convolutional Neural Network with U-Net algorithm? but i think U-Net limitations are the input image should be square (width, height are same) and ecg usually a strip of long line...
any suggestion?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 months ago.
Improve this question
Assuming that I have an excel sheet with three columns of data and one column of label. Can I use all three columns of data to train a neural network to predict the label?
Definitely. Here is a sketch of such a neural network:
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Hi I have write machine learning use decision tree model. I create webapp that user can input and web will call to model by flask api and then show result on webapp but my result have only Yes/No. It possible if the result can show percentage how much this input will yes/no, Example Yes 76%
You could use predict_proba() as it returns the class probabilities of the input samples X.
probs = clf.predict_proba(X)
# probs will output the probability of the prediction on each class.
You can read more about it in the documentation and in this other post with a similar question.
https://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeClassifier.html
Scikit-Learn Decision Tree: Probability of prediction being a or b?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Every tutorial I have found about machine learning includes testing an algorithm on a dataset that has target values and then it finds how accurate the algorithm is by testing its predictions on the test set.
What if you then receive all of the data except for the target value and you want to make target value predictions to see if they come true in the future?Every tutorial I have seen has been with data that they already know the future target value predictions.
Decision tree is a supervised algorithm. That means you must use some target value(or lable) to build the tree(dividing node's value based on information gain rule).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
My data was modelled with a Cox-regression, using R, however I would like to use this model into a python GUI. As my knowledge of R is very limited. This way non-coders would be able to 'predict' survival rates based on our model.
What is the best way that I could use this model (combination of 3 different regressions) in python?
Do you want to predict values based on your estimates?
In this case you can just copy the R outputs into python and apply to
respective procedures.
Do you want the user to be able to run "your R regression pipeline" from within Python?
There are python libraries that help with that. I find this
source a useful start.