he has to identify the words are spam or not. Help him in order to analyze and classify…
- User
he has to identify the words are spam or not. Help him in order to analyze and classify the spam data using XG Boost Classifier
emails.csv: information : rows of the emails from 1 to 350 and numbered accordingly by the words count of 1st row and 1st row contains the bunch of words of email text. - graph and visual plots and display first columns and rows of the dataset and index also display
give me python program which must display all the required plots and all the visual plots (which is not required with advance show-case to display and see and reveal more details) graph and visual plots
give me outputs with all paramters...roc, classification report, roc curve with all visual plots, r1_score, etc like: class and frequency distribution, class distribution
dataset doesn't have labels: 0 (or) 1
Iteration, loss and accuracy(%) -- graph and visual plots
Sequence input 1 dimension Number of hidden units 100 State activation function tanh Gate activation function sigmoid Output 2 Epsilon 1e-8 Training parameters Optimizer Adam Gradient decay factor 0.9 Squared gradient decay factor 0.999 Max Epoch 150 Mini Batchsize 128 LearnRateDropFactor 1e-2 Initial learning rate (α) 1e-3 Execution environment Auto
confusion matrix: output class, target class
percentage(%) & learning classifiers, AC, PREC, Recall, F-measure, -- graphs plots
true label and predicted label visual plots
plt.ylabel('True Positive Rate') plt.title('Receiver Operating Characteristic') plt.legend(loc="lower right") plt.show()
Feature Importance
xgb.plot_importance(xgb_clf) plt.title('Feature Importance') plt.show()
Gain and Cover Plots
xgb.plot_importance(xgb_clf, importance_type='gain') plt.title('Feature Importance - Gain') plt.show()
xgb.plot_importance(xgb_clf, importance_type='cover') plt.title('Feature Importance - Cover') plt.show()
- Assistant
- User
- Assistant