Giter Site home page Giter Site logo

astrojuanlu / ie-mbd-advanced-python Goto Github PK

View Code? Open in Web Editor NEW
31.0 7.0 70.0 7.36 MB

"Advanced Python" subject from the Master in Big Data @ IE

Home Page: https://nbviewer.jupyter.org/github/astrojuanlu/ie-mbd-advanced-python/

License: Other

Python 0.29% Jupyter Notebook 99.71%
python

ie-mbd-advanced-python's Issues

Session 4-5

Missing instruction for the switch command. git switch -c etc

Problema con dask_ml.preprocessing

Hola Profe!

Estoy trabajando en el assignment individual y la verdad es que me esta costando la parte de MinMaxScaler en dask_ml.preprocessing, ya que segun el error message que me da la funcion, deberia haber la definicion de la variable 'scale_' adentro del method 'transform' como la hay en 'fit'. Segun tu experiencia, deberia de modificar directamente el archivo 'data.py' para agregar la variable 'scale_', o ves con mayor probabilidad de éxito que use sklearn.preprocessing? De manera mas amplia, deberia utilizar dask_ml en lugar de sklearn en todas las intancias? Abajo podés ver las capturas de pantallas.

Gracias!
Paul

Screen Shot 2019-05-14 at 2 33 53 PM

Screen Shot 2019-05-14 at 1 50 15 PM

ImportError when doing pytest

Hello,
I am trying TDD process, so first I created a test function for the simple example of suming 2 numbers:

def test_sum_two_numbers_give_expected_result():
    a=2
    b=2
    
    expected_output=4
    assert output==expected_output

When I do this, the pytest works an tells me that does not work because output is not defined. So I proceed and an the 2 lines:

from  ie_nlp_utils import sum_numbers

def test_sum_two_numbers_give_expected_result():
    a=2
    b=2
    
    expected_output=4
    output=sum_numbers
    assert output==expected_output

Then in the > src/ie_nlp_utils/init.py

I create the following super simple function:

def sum_numbers():
	return 4

Save the changes and when I run the pytest again I get the following error:
image

¿?

Problems when pip install

Hello professor,
I am redoing all we have done in class this week. So I have created again a folder with the structure provided (src, tests, ...) when I am done, I try to do pip install ie_nlp_utils (name provided in metadata of setup.cfg) and I find this error:
image

By the way, in this case I called the package and the name in setup.cfg ie_nlp_utils, the same exactly name.
What am I doing wrong?

Problems with .mask()

Hello professor,

I need to rewrite with Dask a function that replace the values of a column according to some rules.

image

However, when I test the function I am getting the following error:

image

I have tried everything but still did not get answer...
Thank you

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.