| Before PR | After PR |
|---|---|
![]() |
![]() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |

