Platform
Resources
Pricing
Sign in
Get started
sandro ormeno
Industrial design, Animator and maker
Workspace
Fork
Published
By
sandro ormeno
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
test
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
train
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Y
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
X
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
test_tensor
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
model
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
mi_test
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
tf
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML