GithubHelp home page GithubHelp logo

bogdancojocar / medium-articles Goto Github PK

View Code? Open in Web Editor NEW
104.0 3.0 106.0 256 KB

Repo for all my code on the articles I post on medium

Jupyter Notebook 87.95% Scala 2.04% Python 8.23% Makefile 0.15% HCL 1.52% Dockerfile 0.12%

medium-articles's Introduction

Repository for Medium articles

You can stay up to date with the latest stories I post on medium here

medium-articles's People

Contributors

bogdancojocar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

medium-articles's Issues

Issues with XGBoostEstimator cell

Hi there,

first, thank you for a great Medium post and for this repository. I am new to PySpark, and am trying to run your code. It all works fine util I get to xgboost = XGBoostEstimator(... cell. When I try to run it, i get the following error message:

TypeError: 'JavaPackage' object is not callable

If you have any ides why this might be the case, or what I could do to resolve this issue, it would be very helpful.

Thanks,

Bojan

TypeError: 'JavaPackage' object is not callable on trying to run XGBoostEstimator, which imports just OK

As I run the code

xgboost = XGBoostEstimator( featuresCol="features", labelCol="Survival", predictionCol="prediction" )

I got an error

TypeError Traceback (most recent call last)
in ()
1 xgboost = XGBoostEstimator(
2 # featuresCol="features",
----> 3 labelCol="Survival"
4 )

2 frames
/content/spark-2.4.8-bin-hadoop2.7/python/pyspark/ml/wrapper.py in _new_java_obj(java_class, *args)
65 java_obj = getattr(java_obj, name)
66 java_args = [_py2java(sc, arg) for arg in args]
---> 67 return java_obj(*java_args)
68
69 @staticmethod

TypeError: 'JavaPackage' object is not callable

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.