Submit Search
Upload
【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
•
0 likes
•
129 views
Ruo Ando
Follow
TensorFlowのプログラムを読む2 非線形回帰
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 8
Download now
Download to read offline
Recommended
PYTHON. AM CALL Pricing Trees
PYTHON. AM CALL Pricing Trees
Tianqi Huang, CFA
Monte-carlo sim pricing EU call
Monte-carlo sim pricing EU call
Tianqi Huang, CFA
Derivatives Lesson Oct 13
Derivatives Lesson Oct 13
ingroy
Tensorflow basics
Tensorflow basics
IshaNemaCSPOcertifie
Processing資料(5) 正弦波と極座標
Processing資料(5) 正弦波と極座標
reona396
Program to reflecta triangle
Program to reflecta triangle
Tanya Makkar
Day 1a examples
Day 1a examples
jchartiersjsd
PythonArtCode
PythonArtCode
Quinn McFee
Recommended
PYTHON. AM CALL Pricing Trees
PYTHON. AM CALL Pricing Trees
Tianqi Huang, CFA
Monte-carlo sim pricing EU call
Monte-carlo sim pricing EU call
Tianqi Huang, CFA
Derivatives Lesson Oct 13
Derivatives Lesson Oct 13
ingroy
Tensorflow basics
Tensorflow basics
IshaNemaCSPOcertifie
Processing資料(5) 正弦波と極座標
Processing資料(5) 正弦波と極座標
reona396
Program to reflecta triangle
Program to reflecta triangle
Tanya Makkar
Day 1a examples
Day 1a examples
jchartiersjsd
PythonArtCode
PythonArtCode
Quinn McFee
Baby Steps to Machine Learning at DevFest Lagos 2019
Baby Steps to Machine Learning at DevFest Lagos 2019
Robert John
What is TensorFlow and why do we use it
What is TensorFlow and why do we use it
Robert John
Dynamic allocation
Dynamic allocation
CGC Technical campus,Mohali
Extreme Value
Extreme Value
nclamelas
Public class arithmetic operatordemo
Public class arithmetic operatordemo
Cliff Rodrigo
Segundo Punto
Segundo Punto
gustavo206
Maple Code for Steepest Descent
Maple Code for Steepest Descent
Jeremy Lane
Basics of Computer graphics lab
Basics of Computer graphics lab
Priya Goyal
Sketching derivatives
Sketching derivatives
ssuserdb91c91
week-15x
week-15x
KITE www.kitecolleges.com
Rombo matriz
Rombo matriz
epetekaun
Ejercicios Scilab Completo
Ejercicios Scilab Completo
Ricardo Grandas
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4
Vanishree Arun
Pointer example
Pointer example
University of Potsdam
Taller De Scilab
Taller De Scilab
Andrés Renteria
Trabajo Scilab
Trabajo Scilab
alexistorres
Derivatives in graphing-dfs
Derivatives in graphing-dfs
Farhana Shaheen
Quad fcn
Quad fcn
Angie Starrett
ML: A Strongly Typed Functional Language
ML: A Strongly Typed Functional Language
lijx127
Proga 0601
Proga 0601
Atsushi Tadokoro
Машинное обучение на JS. С чего начать и куда идти | Odessa Frontend Meetup #12
Машинное обучение на JS. С чего начать и куда идти | Odessa Frontend Meetup #12
OdessaFrontend
Need help filling out the missing sections of this code- the sections.docx
Need help filling out the missing sections of this code- the sections.docx
lauracallander
More Related Content
What's hot
Baby Steps to Machine Learning at DevFest Lagos 2019
Baby Steps to Machine Learning at DevFest Lagos 2019
Robert John
What is TensorFlow and why do we use it
What is TensorFlow and why do we use it
Robert John
Dynamic allocation
Dynamic allocation
CGC Technical campus,Mohali
Extreme Value
Extreme Value
nclamelas
Public class arithmetic operatordemo
Public class arithmetic operatordemo
Cliff Rodrigo
Segundo Punto
Segundo Punto
gustavo206
Maple Code for Steepest Descent
Maple Code for Steepest Descent
Jeremy Lane
Basics of Computer graphics lab
Basics of Computer graphics lab
Priya Goyal
Sketching derivatives
Sketching derivatives
ssuserdb91c91
week-15x
week-15x
KITE www.kitecolleges.com
Rombo matriz
Rombo matriz
epetekaun
Ejercicios Scilab Completo
Ejercicios Scilab Completo
Ricardo Grandas
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4
Vanishree Arun
Pointer example
Pointer example
University of Potsdam
Taller De Scilab
Taller De Scilab
Andrés Renteria
Trabajo Scilab
Trabajo Scilab
alexistorres
Derivatives in graphing-dfs
Derivatives in graphing-dfs
Farhana Shaheen
Quad fcn
Quad fcn
Angie Starrett
ML: A Strongly Typed Functional Language
ML: A Strongly Typed Functional Language
lijx127
Proga 0601
Proga 0601
Atsushi Tadokoro
What's hot
(20)
Baby Steps to Machine Learning at DevFest Lagos 2019
Baby Steps to Machine Learning at DevFest Lagos 2019
What is TensorFlow and why do we use it
What is TensorFlow and why do we use it
Dynamic allocation
Dynamic allocation
Extreme Value
Extreme Value
Public class arithmetic operatordemo
Public class arithmetic operatordemo
Segundo Punto
Segundo Punto
Maple Code for Steepest Descent
Maple Code for Steepest Descent
Basics of Computer graphics lab
Basics of Computer graphics lab
Sketching derivatives
Sketching derivatives
week-15x
week-15x
Rombo matriz
Rombo matriz
Ejercicios Scilab Completo
Ejercicios Scilab Completo
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4
Pointer example
Pointer example
Taller De Scilab
Taller De Scilab
Trabajo Scilab
Trabajo Scilab
Derivatives in graphing-dfs
Derivatives in graphing-dfs
Quad fcn
Quad fcn
ML: A Strongly Typed Functional Language
ML: A Strongly Typed Functional Language
Proga 0601
Proga 0601
Similar to 【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
Машинное обучение на JS. С чего начать и куда идти | Odessa Frontend Meetup #12
Машинное обучение на JS. С чего начать и куда идти | Odessa Frontend Meetup #12
OdessaFrontend
Need help filling out the missing sections of this code- the sections.docx
Need help filling out the missing sections of this code- the sections.docx
lauracallander
Pythonbrasil - 2018 - Acelerando Soluções com GPU
Pythonbrasil - 2018 - Acelerando Soluções com GPU
Paulo Sergio Lemes Queiroz
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
ETS Asset Management Factory
Succumbing to the Python in Financial Markets
Succumbing to the Python in Financial Markets
dcerezo
Pytorch for tf_developers
Pytorch for tf_developers
Abdul Muneer
TensorFlow Dev Summit 2018 Extended: TensorFlow Eager Execution
TensorFlow Dev Summit 2018 Extended: TensorFlow Eager Execution
Taegyun Jeon
Introduction to Tensorflow
Introduction to Tensorflow
Tzar Umang
Regression Tree.pdf
Regression Tree.pdf
IvanHartana4
Assignment 6.2a.pdf
Assignment 6.2a.pdf
dash41
Python profiling
Python profiling
dreampuf
Os lab upto_1st_mid
Os lab upto_1st_mid
Murali Kummitha
Os lab upto 1st mid
Os lab upto 1st mid
Murali Kummitha
Os lab 1st mid
Os lab 1st mid
Murali Kummitha
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & PyTorch with B...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & PyTorch with B...
Databricks
Fourier series example
Fourier series example
Abi finni
Google TensorFlow Tutorial
Google TensorFlow Tutorial
台灣資料科學年會
maXbox starter65 machinelearning3
maXbox starter65 machinelearning3
Max Kleiner
Intelligent System Optimizations
Intelligent System Optimizations
Martin Zapletal
Python
Python
Pooriya Kazemzadeh-Heris
Similar to 【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
(20)
Машинное обучение на JS. С чего начать и куда идти | Odessa Frontend Meetup #12
Машинное обучение на JS. С чего начать и куда идти | Odessa Frontend Meetup #12
Need help filling out the missing sections of this code- the sections.docx
Need help filling out the missing sections of this code- the sections.docx
Pythonbrasil - 2018 - Acelerando Soluções com GPU
Pythonbrasil - 2018 - Acelerando Soluções com GPU
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Succumbing to the Python in Financial Markets
Succumbing to the Python in Financial Markets
Pytorch for tf_developers
Pytorch for tf_developers
TensorFlow Dev Summit 2018 Extended: TensorFlow Eager Execution
TensorFlow Dev Summit 2018 Extended: TensorFlow Eager Execution
Introduction to Tensorflow
Introduction to Tensorflow
Regression Tree.pdf
Regression Tree.pdf
Assignment 6.2a.pdf
Assignment 6.2a.pdf
Python profiling
Python profiling
Os lab upto_1st_mid
Os lab upto_1st_mid
Os lab upto 1st mid
Os lab upto 1st mid
Os lab 1st mid
Os lab 1st mid
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & PyTorch with B...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & PyTorch with B...
Fourier series example
Fourier series example
Google TensorFlow Tutorial
Google TensorFlow Tutorial
maXbox starter65 machinelearning3
maXbox starter65 machinelearning3
Intelligent System Optimizations
Intelligent System Optimizations
Python
Python
More from Ruo Ando
KISTI-NII Joint Security Workshop 2023.pdf
KISTI-NII Joint Security Workshop 2023.pdf
Ruo Ando
Gartner 「セキュリティ&リスクマネジメントサミット 2019」- 安藤
Gartner 「セキュリティ&リスクマネジメントサミット 2019」- 安藤
Ruo Ando
解説#86 決定木 - ss.pdf
解説#86 決定木 - ss.pdf
Ruo Ando
SaaSアカデミー for バックオフィス アイドルと学ぶDX講座 ~アイドル戦略に見るDXを専門家が徹底解説~
SaaSアカデミー for バックオフィス アイドルと学ぶDX講座 ~アイドル戦略に見るDXを専門家が徹底解説~
Ruo Ando
解説#83 情報エントロピー
解説#83 情報エントロピー
Ruo Ando
解説#82 記号論理学
解説#82 記号論理学
Ruo Ando
解説#81 ロジスティック回帰
解説#81 ロジスティック回帰
Ruo Ando
解説#74 連結リスト
解説#74 連結リスト
Ruo Ando
解説#76 福岡正信
解説#76 福岡正信
Ruo Ando
解説#77 非加算無限
解説#77 非加算無限
Ruo Ando
解説#1 C言語ポインタとアドレス
解説#1 C言語ポインタとアドレス
Ruo Ando
解説#78 誤差逆伝播
解説#78 誤差逆伝播
Ruo Ando
解説#73 ハフマン符号
解説#73 ハフマン符号
Ruo Ando
【技術解説20】 ミニバッチ確率的勾配降下法
【技術解説20】 ミニバッチ確率的勾配降下法
Ruo Ando
【技術解説4】assertion failureとuse after-free
【技術解説4】assertion failureとuse after-free
Ruo Ando
ITmedia Security Week 2021 講演資料
ITmedia Security Week 2021 講演資料
Ruo Ando
ファジングの解説
ファジングの解説
Ruo Ando
AI(機械学習・深層学習)との協働スキルとOperational AIの事例紹介 @ ビジネス+ITセミナー 2020年11月
AI(機械学習・深層学習)との協働スキルとOperational AIの事例紹介 @ ビジネス+ITセミナー 2020年11月
Ruo Ando
Intel Trusted Computing Group 1st Workshop
Intel Trusted Computing Group 1st Workshop
Ruo Ando
情報セキュリティと標準化I 第15回
情報セキュリティと標準化I 第15回
Ruo Ando
More from Ruo Ando
(20)
KISTI-NII Joint Security Workshop 2023.pdf
KISTI-NII Joint Security Workshop 2023.pdf
Gartner 「セキュリティ&リスクマネジメントサミット 2019」- 安藤
Gartner 「セキュリティ&リスクマネジメントサミット 2019」- 安藤
解説#86 決定木 - ss.pdf
解説#86 決定木 - ss.pdf
SaaSアカデミー for バックオフィス アイドルと学ぶDX講座 ~アイドル戦略に見るDXを専門家が徹底解説~
SaaSアカデミー for バックオフィス アイドルと学ぶDX講座 ~アイドル戦略に見るDXを専門家が徹底解説~
解説#83 情報エントロピー
解説#83 情報エントロピー
解説#82 記号論理学
解説#82 記号論理学
解説#81 ロジスティック回帰
解説#81 ロジスティック回帰
解説#74 連結リスト
解説#74 連結リスト
解説#76 福岡正信
解説#76 福岡正信
解説#77 非加算無限
解説#77 非加算無限
解説#1 C言語ポインタとアドレス
解説#1 C言語ポインタとアドレス
解説#78 誤差逆伝播
解説#78 誤差逆伝播
解説#73 ハフマン符号
解説#73 ハフマン符号
【技術解説20】 ミニバッチ確率的勾配降下法
【技術解説20】 ミニバッチ確率的勾配降下法
【技術解説4】assertion failureとuse after-free
【技術解説4】assertion failureとuse after-free
ITmedia Security Week 2021 講演資料
ITmedia Security Week 2021 講演資料
ファジングの解説
ファジングの解説
AI(機械学習・深層学習)との協働スキルとOperational AIの事例紹介 @ ビジネス+ITセミナー 2020年11月
AI(機械学習・深層学習)との協働スキルとOperational AIの事例紹介 @ ビジネス+ITセミナー 2020年11月
Intel Trusted Computing Group 1st Workshop
Intel Trusted Computing Group 1st Workshop
情報セキュリティと標準化I 第15回
情報セキュリティと標準化I 第15回
Recently uploaded
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
GDSCAESB
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
britheesh05
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
Tsuyoshi Horigome
Internship report on mechanical engineering
Internship report on mechanical engineering
malavadedarshan25
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
KartikeyaDwivedi3
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
DeepakSakkari2
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
NikhilNagaraju
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
me23b1001
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
eptoze12
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Mark Billinghurst
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
dollysharma2066
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
PoojaBan
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
RajaP95
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
jennyeacort
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Asst.prof M.Gokilavani
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting .
Satyam Kumar
Recently uploaded
(20)
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
Internship report on mechanical engineering
Internship report on mechanical engineering
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting .
【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
1.
モデル 予測値Y’ 真の予測値Y 損失関数 損失率 オプティマイザー ①モデルは何か? ②損失関数は何を使っているか? ③オプティマイザーは何を使っているか?
2.
15num_coeffs = 6 16trY_coeffs
= [1, 2, 3, 4, 5, 6] 17trY = 0 18for i in range(num_coeffs): 19 #print(i) 20 trY += trY_coeffs[i] * np.power(trX, i) 21 #print(trX) 22 #print(trY) 23 24trY += np.random.randn(*trX.shape) * 1.5 25 26#print(trX) 27#print(trY) 28plt.scatter(trX, trY) 29plt.show() F(x) = Wn*X^n + … + W1*x + W0 https://github.com/RuoAndo/seminar/blob/master/jt/7-nonlinear.py
3.
41w = tf.Variable([0.]
* num_coeffs, name="parameters") 42y_model = model(X, w) 43 44cost = tf.reduce_sum(tf.square(Y-y_model)) 45train_op = tf.train.GradientDescentOptimizer(learning_rate).minimize(cost) 46 47sess = tf.Session() 48init = tf.global_variables_initializer() 49sess.run(init) 50 51for epoch in range(training_epochs): 52 for (x, y) in zip(trX, trY): 53 sess.run(train_op, feed_dict={X: x, Y: y}) 54 55w_val = sess.run(w) 56print(w_val) [1.0518903 1.7557341 4.2570124 5.756541 3.2840345 5.1628995] session.runの引数 train_opを探す。
4.
41w = tf.Variable([0.]
* num_coeffs, name="parameters") 42y_model = model(X, w) 43 44cost = tf.reduce_sum(tf.square(Y-y_model)) 45train_op = tf.train.GradientDescentOptimizer(learning_rate).minimize(cost) 46 47sess = tf.Session() 48init = tf.global_variables_initializer() 49sess.run(init) 50 51for epoch in range(training_epochs): 52 for (x, y) in zip(trX, trY): 53 sess.run(train_op, feed_dict={X: x, Y: y}) 54 55w_val = sess.run(w) 56print(w_val) [1.0518903 1.7557341 4.2570124 5.756541 3.2840345 5.1628995] 損失関数は 何か?
5.
41w = tf.Variable([0.]
* num_coeffs, name="parameters") 42y_model = model(X, w) 43 44cost = tf.reduce_sum(tf.square(Y-y_model)) 45train_op = tf.train.GradientDescentOptimizer(learning_rate).minimize(cost) 46 47sess = tf.Session() 48init = tf.global_variables_initializer() 49sess.run(init) 50 51for epoch in range(training_epochs): 52 for (x, y) in zip(trX, trY): 53 sess.run(train_op, feed_dict={X: x, Y: y}) 54 55w_val = sess.run(w) 56print(w_val) [1.0518903 1.7557341 4.2570124 5.756541 3.2840345 5.1628995] モデルを探す。
6.
41w = tf.Variable([0.]
* num_coeffs, name="parameters") 42y_model = model(X, w) 43 44cost = tf.reduce_sum(tf.square(Y-y_model)) 45train_op = tf.train.GradientDescentOptimizer(learning_rate).minimize(cost) 46 47sess = tf.Session() 48init = tf.global_variables_initializer() 49sess.run(init) 50 51for epoch in range(training_epochs): 52 for (x, y) in zip(trX, trY): 53 sess.run(train_op, feed_dict={X: x, Y: y}) 54 55w_val = sess.run(w) 56print(w_val) [1.0518903 1.7557341 4.2570124 5.756541 3.2840345 5.1628995] 34def model(X, w): 35 terms = [] 36 for i in range(num_coeffs): 37 term = tf.multiply(w[i], tf.pow(X, i)) 38 terms.append(term) 39 return tf.add_n(terms) モデル
7.
34def model(X, w): 35
terms = [] 36 for i in range(num_coeffs): 37 term = tf.multiply(w[i], tf.pow(X, i)) 38 terms.append(term) 39 return tf.add_n(terms) モデル 15num_coeffs = 6 16trY_coeffs = [1, 2, 3, 4, 5, 6] 17trY = 0 18for i in range(num_coeffs): 19 #print(i) 20 trY += trY_coeffs[i] * np.power(trX, i) 生成器
8.
60plt.scatter(trX, trY) 61trY2 =
0 62for i in range(num_coeffs): 63 trY2 += w_val[i] * np.power(trX, i) 64plt.plot(trX, trY2, 'r') 65plt.show() 15num_coeffs = 6 16trY_coeffs = [1, 2, 3, 4, 5, 6] 17trY = 0 18for i in range(num_coeffs): 19 #print(i) 20 trY += trY_coeffs[i] * np.power(trX, i) 生成器
Download now