Demo entry 6763238

py

   

Submitted by lu on Oct 21, 2018 at 04:43
Language: Python 3. Code size: 235 Bytes.

import numpy as np
import tensorflow as tf
import random
import matplotlib.pyplot as plt

x_data=np.linspace(-1,1,300)[:,np.newaxis]
noise=np.random.normal(0,0.05,x_data.shape)
y_data=x_data**np.random.choice(range(1,6))+noise

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).