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
" ---------------------------------------------------------------------------- | |
" GENERAL SETTINGS | |
" ---------------------------------------------------------------------------- | |
scriptencoding utf-16 " allow emojis in vimrc | |
set encoding=utf-8 " necessery encoding for powerline | |
set nocompatible " vim, not vi | |
syntax on " syntax highlighting | |
filetype plugin indent on " try to recognize filetypes and load rel' plugins | |
let mapleader = ',' " set the mapleaders before mappings! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
fig = plt.figure(figsize=(30,10)) | |
# loss/acc | |
ax11 = plt.subplot(241) | |
ax11.plot(range(len(epoch_loss)),np.array(epoch_loss)); | |
ax11.set_title('Epoch loss') | |
ax21 = plt.subplot(245) | |
ax21.plot(range(len(epoch_acc)),np.array(epoch_acc)); | |
ax21.set_title('Epoch acc') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 import svm, datasets | |
from sklearn.model_selection import StratifiedKFold | |
from sklearn.metrics import confusion_matrix, classification_report, RocCurveDisplay, ConfusionMatrixDisplay, auc | |
# Import some data to play with | |
iris = datasets.load_iris() | |
X = iris.data | |
y = iris.target | |
target_names = iris.target_names[:2] |
OlderNewer