Published
Edited
Jul 31, 2018
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//jj = train[0].sepal_length, train[0].sepal_width
X = tf.tensor2d(train.map(item => [item.sepal_length, item.sepal_width, item.petal_length, item.petal_width]))
Insert cell
test_tensor = tf.tensor2d(test.map(item => [item.sepal_length, item.sepal_width, item.petal_length, item.petal_width]),[3,4])
Insert cell
Insert cell
model.fit(X, Y, {epochs: 100})
Insert cell
Insert cell
//cambiar aquí los valores
//sepal length - sepal width - petal length - petal width

mi_test= tf.tensor2d([6.1,2.8,4.4,1.5],[1, 4])

// [[ Iris setosa , Iris versicolor , Iris virginica]]

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more