07 2019 档案

摘要:#!/usr/bin/python # -*- coding:utf-8 -*- # 导入NumPy函数库,一般都是用这样的形式(包括别名np,几乎是约定俗成的) import numpy as np import matplotlib from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm import time f... 阅读全文
posted @ 2019-07-30 22:27 喵小喵~ 阅读(510) 评论(0) 推荐(0)
摘要:#!/usr/bin/python # -*- coding:utf-8 -*- import numpy as np from sklearn.linear_model import LinearRegression, RidgeCV from sklearn.preprocessing import PolynomialFeatures import matplotlib.pyplot a... 阅读全文
posted @ 2019-07-29 18:55 喵小喵~ 阅读(326) 评论(0) 推荐(0)
摘要:#!/usr/bin/python # -*- coding:utf-8 -*- import numpy as np from sklearn.linear_model import LogisticRegression import matplotlib.pyplot as plt import matplotlib as mpl from sklearn import preproces... 阅读全文
posted @ 2019-07-29 17:37 喵小喵~ 阅读(217) 评论(0) 推荐(0)
摘要:#!/usr/bin/python # -*- coding:utf-8 -*- import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_model import ... 阅读全文
posted @ 2019-07-29 16:46 喵小喵~ 阅读(355) 评论(0) 推荐(0)
摘要:#!/usr/bin/python # -*- coding:utf-8 -*- import csv import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_mo... 阅读全文
posted @ 2019-07-29 16:39 喵小喵~ 阅读(257) 评论(0) 推荐(0)
摘要:# -*- coding:utf-8 -*- import numpy as np from scipy import stats import math import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import ... 阅读全文
posted @ 2019-07-24 11:40 喵小喵~ 阅读(10009) 评论(2) 推荐(1)
摘要:import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import math #e^x = 1 + x + x^2/2!+... def calc_e_small(x): n = 10 #累乘 cumsum是求和 #1! 2! 3! 4! 5!...10! f =... 阅读全文
posted @ 2019-07-24 09:49 喵小喵~ 阅读(6302) 评论(0) 推荐(0)
摘要:import numpy as np import math #直到主对角线上的值变化很小时,结束循环 def is_same(a,b): print(a) print(b) n = len(a) for i in range(n): if(math.fabs(a[i]-b[i]) > 1e-9): return Fals... 阅读全文
posted @ 2019-07-22 08:00 喵小喵~ 阅读(1430) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- # Filename : Boltzmann.py import operator from numpy import * import copy import matplotlib.pyplot as plt class BoltzmannNet(object): def __init__(self): self.d... 阅读全文
posted @ 2019-07-04 10:46 喵小喵~ 阅读(449) 评论(1) 推荐(1)
摘要:误差曲线 阅读全文
posted @ 2019-07-04 09:29 喵小喵~ 阅读(4815) 评论(1) 推荐(0)