吴裕雄--天生自然 PYTHON语言数据分析:ESA的火星快车操作数据集分析
摘要:import os import numpy as np import pandas as pd from datetime import datetime import matplotlib import matplotlib.pyplot as plt import seaborn as sns sns.set_style('white') %matplotlib inline %lo...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:基于Keras的CNN分析太空深处寻找系外行星数据
摘要:#We import libraries for linear algebra, graphs, and evaluation of results import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.preproces...
阅读全文
吴裕雄--天生自然 python数据分析:基于Keras使用CNN神经网络处理手写数据集
摘要:import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg import seaborn as sns %matplotlib inline np.random.seed(2) from sklearn.model_selection impo...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:人类发展报告——HDI, GDI,健康,全球人口数据数据分析
摘要: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...
阅读全文
吴裕雄--天生自然 python数据分析:医疗费数据分析
摘要: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...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:糖尿病视网膜病变数据分析(完整版)
摘要:# 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...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:糖尿病视网膜病变数据分析(续六)
摘要: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...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:糖尿病视网膜病变数据分析(续五)
摘要: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...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:糖尿病视网膜病变数据分析(续四)
摘要:dpi = 80 #inch path_jpg=f"F:\\kaggleDataSet\\diabeticRetinopathy\\resized_train_cropped\\18017_left.jpeg" # too many vessels? path_png=f"F:\\kaggleDataSet\\diabeticRetinopathy\\rescaled_train_896\\1...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:糖尿病视网膜病变数据分析(续二)
摘要:def circle_crop(img, sigmaX=10): """ Create circular crop around image centre """ img = cv2.imread(img) img = crop_image_from_gray(img) img = cv2.cvtColor(img, ...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:糖尿病视网膜病变数据分析(续一)
摘要:%%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...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:糖尿病视网膜病变数据分析
摘要:# 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...
阅读全文
吴裕雄--天生自然 R数据分析:2014年美国人时间使用调查(ATUS)饮食与健康模块文件分析
摘要:# 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...
阅读全文
吴裕雄--天生自然 PYTHON数据分析:所有美国股票和etf的历史日价格和成交量分析
摘要:# 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...
阅读全文
吴裕雄--天生自然 Tensorflow卷积神经网络:花朵图片识别
摘要:import os import numpy as np import matplotlib.pyplot as plt from PIL import Image, ImageChops from skimage import color,data,transform,io #获取所有数据文件夹名称 fileList = os.listdir("F:\\data\\flowers") tra...
阅读全文
吴裕雄--天生自然 神经网络人工智能项目:基于神经网络算法在智能医疗诊断中的应用探索
摘要:表 2-1 人工智能在医疗领域的应用 智能医疗领域 人工智能技术 具体应用或方法 电子病历 语音识别/合成、自然语言处理 语音识别医生诊断语录,并对信息进行结构化处理,得到可分类的病历信息 影像诊断 机器视觉 图像预处理,抓取特征等 辅助治疗 语音识别/合成、自然语言处理、机器视觉、机器学习 通过语
阅读全文
吴裕雄 python 神经网络——TensorFlow 卷积神经网络手写数字图片识别
摘要:import os import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data INPUT_NODE = 784 OUTPUT_NODE = 10 LAYER1_NODE = 500 def get_weight_variable(shape, regularizer): wei...
阅读全文
吴裕雄 python 神经网络——TensorFlow 卷积神经网络水果图片识别
摘要:#-*- coding:utf-8 -*- import time import keras import skimage import numpy as np import tensorflow as tf import matplotlib.image as img from scipy import ndimage from skimage import color, data, tr...
阅读全文
吴裕雄 python 神经网络——TensorFlow 花瓣分类与迁移学习(2)
摘要:import glob import os.path import numpy as np import tensorflow as tf from tensorflow.python.platform import gfile # 原始输入数据的目录,这个目录下有5个子目录,每个子目录底下保存这属于该 # 类别的所有图片。 INPUT_DATA = 'F:\\TensorFlowGoogle...
阅读全文
吴裕雄 python 神经网络——TensorFlow 花瓣分类与迁移学习(1)
摘要:import glob import os.path import numpy as np import tensorflow as tf from tensorflow.python.platform import gfile # 原始输入数据的目录,这个目录下有5个子目录,每个子目录底下保存这属于该 # 类别的所有图片。 INPUT_DATA = 'F:\\TensorFlowGoogle...
阅读全文