Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
张 建国
onn在线训练
Commits
074d19c5
Unverified
Commit
074d19c5
authored
Jun 13, 2019
by
Alison Carrera
Committed by
GitHub
Jun 13, 2019
Browse files
Update README.md
parent
11b9efc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
074d19c5
...
...
@@ -22,12 +22,12 @@ onn_network.partial_fit(np.asarray([[0.8, 0.5]]), np.asarray([1]))
#Predict classes
predictions
=
onn_network
.
predict
(
np
.
asarray
([[
0.1
,
0.2
],
[
0.8
,
0.5
]]))
Predictions
-
>
q
array
([
1
,
1
])
Predictions
-
-
array
([
1
,
1
])
#Predict classes probabilities
predictions
=
onn_network
.
predict_proba
(
np
.
asarray
([[
0.1
,
0.2
],
[
0.8
,
0.5
]]))
Predictions
-
>
array
([[
0.5048331
,
0.50083154
],[
0.49516693
,
0.49916846
]],
dtype
=
float32
)
Predictions
-
-
array
([[
0.5048331
,
0.50083154
],[
0.49516693
,
0.49916846
]],
dtype
=
float32
)
```
## New features
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment