<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=TensorFlow%3A_Linear_Regression_generate_data</id>
	<title>TensorFlow: Linear Regression generate data - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=TensorFlow%3A_Linear_Regression_generate_data"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=TensorFlow:_Linear_Regression_generate_data&amp;action=history"/>
	<updated>2026-04-17T12:46:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=TensorFlow:_Linear_Regression_generate_data&amp;diff=56533&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot; # Import libraries (Numpy, matplotlib)  import numpy as np  import matplotlib.pyplot as plt  # Create 1000 points following a function y=0.1 * x + 0.4 (i.e. y \= W * x + b) w...&quot;</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=TensorFlow:_Linear_Regression_generate_data&amp;diff=56533&amp;oldid=prev"/>
		<updated>2019-07-29T23:14:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; # Import libraries (Numpy, matplotlib)  import numpy as np  import matplotlib.pyplot as plt  # Create 1000 points following a function y=0.1 * x + 0.4 (i.e. y \= W * x + b) w...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; # Import libraries (Numpy, matplotlib)&lt;br /&gt;
 import numpy as np&lt;br /&gt;
 import matplotlib.pyplot as plt&lt;br /&gt;
 # Create 1000 points following a function y=0.1 * x + 0.4 (i.e. y \= W * x + b) with some normal random distribution:&lt;br /&gt;
 num_points = 1000&lt;br /&gt;
 vectors_set = []&lt;br /&gt;
 for i in range(num_points):&lt;br /&gt;
     W = 0.1 # W&lt;br /&gt;
     b = 0.4 # b&lt;br /&gt;
     x1 = np.random.normal(0.0, 1.0)&lt;br /&gt;
     nd = np.random.normal(0.0, 0.05)&lt;br /&gt;
     y1 = W * x1 + b&lt;br /&gt;
 # Add some impurity with some normal distribution -i.e. nd:&lt;br /&gt;
     y1 = y1+nd&lt;br /&gt;
 # Append them and create a combined vector set:&lt;br /&gt;
     vectors_set.append([x1, y1])&lt;br /&gt;
 # Separate the data point across axises:&lt;br /&gt;
 x_data = [v[0] for v in vectors_set]&lt;br /&gt;
 y_data = [v[1] for v in vectors_set]&lt;br /&gt;
 # Plot and show the data points in a 2D space&lt;br /&gt;
 plt.plot(x_data, y_data, 'r*', label='Original data')&lt;br /&gt;
 plt.legend()&lt;br /&gt;
 plt.show()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pranala Menarik==&lt;br /&gt;
&lt;br /&gt;
* [[TensorFlow]]&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>