摘要:
import pandas as pd # Data analysis import numpy as np #Data analysis import seaborn as sns # Data visualization import matplotlib.pyplot as plt # Data Visualization import matplotlib.gridspec as... 阅读全文
摘要:
import numpy as np import pandas as pd import os import matplotlib.pyplot as pl import seaborn as sns import warnings warnings.filterwarnings('ignore') data = pd.read_csv('F:\\kaggleDataSet\\Medic... 阅读全文
摘要:
# This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python # For example, here's sev... 阅读全文
摘要:
from albumentations import * import time IMG_SIZE = (224,224) '''Use case from https://www.kaggle.com/alexanderliao/image-augmentation-demo-with-albumentation/''' def albaugment(aug0, img): ret... 阅读全文
摘要:
from keras import layers from keras.models import Model import keras.backend as K K.clear_session() densenet = DenseNet121(weights=None,include_top=False,input_shape=(None,None,3)) GAP_layer = l... 阅读全文
摘要:
%%time NUM_SAMP=10 fig = plt.figure(figsize=(25, 16)) for jj in range(5): for i, (idx, row) in enumerate(df_test.sample(NUM_SAMP,random_state=SEED+jj).iterrows()): ax = fig.add_subplot(5,... 阅读全文
摘要:
%%time fig = plt.figure(figsize=(25, 16)) for class_id in sorted(train_y.unique()): for i, (idx, row) in enumerate(df_train.loc[df_train['diagnosis'] == class_id].sample(5, random_state=SEED).ite... 阅读全文
摘要:
# This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python # For example, here's seve... 阅读全文
摘要:
# libraries we'll need library(car) # for avplots library(tidyverse) # for general utility functions # read in our data bmi_data % filter(erbmi > 0) # remove rows where the reported BMI is les... 阅读全文
摘要:
# This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python # For example, here's sev... 阅读全文