Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maria Karanasou
spark-iforest
Commits
fc0d428c
Unverified
Commit
fc0d428c
authored
Mar 02, 2020
by
Yang, Fangzhou
Committed by
GitHub
Mar 02, 2020
Browse files
Update README.md
add some notes for the python example codes
parent
330bfb19
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
fc0d428c
...
...
@@ -147,6 +147,7 @@ spark = SparkSession \
data
=
[(
Vectors
.
dense
([
0.0
,
0.0
]),),
(
Vectors
.
dense
([
7.0
,
9.0
]),),
(
Vectors
.
dense
([
9.0
,
8.0
]),),
(
Vectors
.
dense
([
8.0
,
9.0
]),)]
# NOTE: features need to be dense vectors for the model input
df
=
spark
.
createDataFrame
(
data
,
[
"features"
])
from
pyspark_iforest.ml.iforest
import
*
...
...
Write
Preview
Supports
Markdown
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