心得体会: 需要思考如何将现实对象转化为特征向量,设置特征向量时记住鸭子定律1 鸭子定律1 如果走路像鸭子.说话像鸭子.长得像鸭子.啄食也像鸭子,那它肯定就是一只鸭子 事物的外在特征就是事物本质的表现 # 2-3手写识别系统 #32*32转1*1024数组 def img2vector(filename): returnVect=zeros((1,1024)) fr=open(filename) for i in range(32): lineStr=fr.readline() for j in
1.RTL 同样的页面,它做了两套.为什么,因为在这个世界上,有些民族,有些语种,是从右向左来的. 2. google material design 同样的一套东西,又分别做了google material 版,那默认版是什么呢?flat design版. google的设计师是怎么想的呢? 引用一张图,来自知乎: 还记得,ipod旋转的马达声吗,就是这个意思.
Suppose you have trained a logistic regression classifier which is outputing hθ(x). Currently, you predict 1 if hθ(x)≥threshold, and predict 0 if hθ(x)<threshold, where currently the threshold is set to 0.5. Suppose you increase the threshold to 0.7.
# -*- coding: utf-8 -*-"""Spyder EditorThis is a temporary script file."""import numpy as npimport matplotlib.pyplot as plt#第一步 获取与处理数据x,y=[],[] #定义存储输入数据和目标数据的数组for sample in open('a.txt','r'): #遍历数据集并保存 _x,_y=sample.spli