2017-05-16から1日間の記事一覧
1変数関数 の極値 # coding:utf-8 def f_dash(x): return float(3*x**2 -4*x + 1) def f_2dash(x): return float(6*x - 4) x = 100 while True: x_nxt = x - f_dash(x)/f_2dash(x) delta = abs(x_nxt-x) if (delta<0.000001): break x = x_nxt print x 1.000…
ヤコビ行列 ヘッセ行列
http://qiita.com/ymfj/items/5e74f36d0c2570942f22
うまく動いていない 初期値に大きく依存してしまう? # coding:utf-8 import numpy as np from sklearn import datasets import math import random from numpy import matrix as mat import pdb import matplotlib.pyplot as plt iris = datasets.load_iris…
http://www.slideshare.net/yuifu/ss-49489128