摘要: 目标: 实现图片分类 input: 一组图片数据 (x,y) output:预测一组新图片(给定x)的y值 工具 要实现这个目标,需要工具(概念+思路)。 思路 1.数据读取, 2.建立模型, 3.预测 所以我们需要3个.py文件: model.py:用来编写我们设计的模型。【这样我们可以根据预测效 阅读全文
posted @ 2021-01-02 15:26 hardland 阅读(62) 评论(0) 推荐(0)
摘要: 检查训练集验证集是不是都进行one-hot编码了,shape 阅读全文
posted @ 2020-12-10 15:36 hardland 阅读(341) 评论(0) 推荐(0)
摘要: Edge(边缘):基本上是指颜色有明显变化的地方 Extracting Edge Features: Prewitt kernel HOG Feature Descriptor Feature Descriptor:It is a simplified representation of the i 阅读全文
posted @ 2020-12-07 19:55 hardland 阅读(66) 评论(0) 推荐(0)
摘要: PySceneDetect is a command-line application and a Python library for detecting scene changes in videos, and automatically splitting the video into sep 阅读全文
posted @ 2020-12-06 15:31 hardland 阅读(261) 评论(0) 推荐(0)
摘要: 实现mask: 原图: mask后: import skimage from skimage.viewer import ImageViewer import numpy as np image = skimage.io.imread('real_scene_01.jpg') viewer = Im 阅读全文
posted @ 2020-12-06 15:20 hardland 阅读(155) 评论(0) 推荐(0)
摘要: sudo cp -r 源文件地址 新地址 阅读全文
posted @ 2020-12-06 12:06 hardland 阅读(1355) 评论(0) 推荐(0)
摘要: pip install opencv-python 阅读全文
posted @ 2020-12-05 20:06 hardland 阅读(44) 评论(0) 推荐(0)
摘要: 1. import skimage.io 报错ImportError: cannot import name '_validate_lengths' from 'numpy.lib.arraypad' 尝试1: pip install --upgrade scikit-image 还是有问题:can 阅读全文
posted @ 2020-12-04 22:05 hardland 阅读(2085) 评论(0) 推荐(0)
摘要: 删除 删除列: df_train.drop(['Cabin'],axis =1) 删除空值行: #1,筛选出该字段为空值的行 df.Age.isnull() #2,找出这些数据的索引 df[df.Age.isnull()].index #3,删除 df.drop(df[df.Age.isnull() 阅读全文
posted @ 2019-11-19 15:09 hardland 阅读(323) 评论(0) 推荐(0)
摘要: 刘建平博客:https://github.com/ljpzzz/machinelearning 阅读全文
posted @ 2019-11-19 15:08 hardland 阅读(120) 评论(0) 推荐(0)