Skip to content

Instantly share code, notes, and snippets.

View TakshPanchal's full-sized avatar
🌴
coding

tensoboy TakshPanchal

🌴
coding
View GitHub Profile
@TakshPanchal
TakshPanchal / softmax_plot.md
Last active June 18, 2022 05:07
output of bimod_dist_plot.ipynb
Before PR After PR
image Image
@TakshPanchal
TakshPanchal / eval.py
Created March 22, 2022 09:54
Code for printing classification report and show confusion matrix
from sklearn.metrics import classification_report, ConfusionMatrixDisplay, confusion_matrix
import matplotlib.pyplot as plt
def eval(y,y_hat,target_names=None):
print(classification_report(y, y_hat, target_names=target_names))
matrix = confusion_matrix(y, y_hat)
disp = ConfusionMatrixDisplay(confusion_matrix=matrix, display_labels=target_names)
disp.plot(cmap=plt.cm.Blues)
plt.show()
// start execution with main()
void main(){
print(sumIt(1,2));
}
// return type is (int)
// args has also return type of (int)
/// [sumIt]
int sumIt(int numberOne,int numberTwo){
// semicolon is necessary