TensorFlow: Linear Regression generate data
# 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) with some normal random distribution: num_points = 1000 vectors_set = [] for i in range(num_points): W = 0.1 # W b = 0.4 # b x1 = np.random.normal(0.0, 1.0) nd = np.random.normal(0.0, 0.05) y1 = W * x1 + b # Add some impurity
| Penerbit | Taratsa |
|---|---|
| Tahun | 2019-07-29 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:7b1da9b9-d959-59bd-9a49-48876bf1e36f |