Giter Club home page Giter Club logo

Comments (7)

tdna avatar tdna commented on June 26, 2024

I think that's not the fault of ISpark.
I think if you compile the code and submit you will get the same message.

from ispark.

shasdemir avatar shasdemir commented on June 26, 2024

The problem does not exist on Zeppelin, though.

from ispark.

tribbloid avatar tribbloid commented on June 26, 2024

I probably encounter it somewhere else before, could you try:

@transient val tf = new HashingTF(numFeatures = 10000)

and let me know the result
?

from ispark.

shasdemir avatar shasdemir commented on June 26, 2024

I tried with the @transient, but I'm getting the same error.

Would you need extra info about my configuration? I can post my ipython_config.py if you want.

from ispark.

tribbloid avatar tribbloid commented on June 26, 2024

I've tested again on the latest build and didn't see this problem, it may be a bug on 1.3.0 but was resolved 0.0.1 later, I'll upload the latest jar tomorrow.

from ispark.

tribbloid avatar tribbloid commented on June 26, 2024

New jar and source code uploaded. Please use the following code to test:

import org.apache.spark.mllib.feature.HashingTF
val text ="Apache Spark is an open-source cluster computing framework originally developed in the AMPLab at UC Berkeley. In contrast to Hadoop's two-stage disk-based MapReduce paradigm, Spark's in-memory primitives provide performance up to 100 times faster for certain applications.[1] By allowing user programs to load data into a cluster's memory and query it repeatedly, Spark is well suited to machine learning algorithms.[2]"
val spamText = sc.parallelize(text.split("[.,]"))
val tf = new HashingTF(numFeatures = 10000)
val spamFeatures = spamText.map(email => tf.transform(email.split(" ")))
spamFeatures.count()

case closed

from ispark.

shasdemir avatar shasdemir commented on June 26, 2024

Thank you for the quick fix.

from ispark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.