1.基础设置
1.1.加载包
import numpy as np # matrix tools
import matplotlib.pyplot as plt # for basic plots
import seaborn as sns # for nicer plots
import pandas as pd
from glob import glob
import re
from skimage.io import imread
import keras
1.2.显示文件夹的文件
matplotlib inline
import os
for dirname, _, filenames in os.walk('/kaggle/input'):
print(dirname,"______")
for filename in filenames:
print(os.path.join(dirname, filename))
2数据集分析
2.1预览数据集信息
BASE_IMG_PATH=os.path.join('..','kaggle/input')
path= os.path.join(BASE_IMG_PATH,'overview.csv')
overview = pd.read_csv(path)
overview.head()
overview['Contrast'] = overview['Contrast'].map(lambda x: 1 if x else 0)