Skip to content

Commit

Permalink
Split input file with space delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
FlytxtRnD committed Jan 15, 2015
1 parent fda60f3 commit 5c83825
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/src/main/python/mllib/gaussian_mixture_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@
"""

import sys

import numpy as np
from pyspark import SparkContext
from pyspark.mllib.clustering import GaussianMixtureEM


# TODO change , to ' '
def parseVector(line):
return np.array([float(x) for x in line.split(',')])
return np.array([float(x) for x in line.split(' ')])


if __name__ == "__main__":
Expand Down

0 comments on commit 5c83825

Please sign in to comment.