GithubHelp home page GithubHelp logo

ds-unit-4-sprint-1-nlp's Introduction

DS-Unit-4-Sprint-1-NLP

ds-unit-4-sprint-1-nlp's People

Contributors

brokenshell avatar fabiolaalvarez avatar jcatanza avatar joqu86 avatar lucchesia7 avatar ryanleeallred avatar sokjc avatar

Stargazers

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

Watchers

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

ds-unit-4-sprint-1-nlp's Issues

module 1 lecture notebook regex

re.sub(r'[^a-zA-Z ^0-9]', '', sample)

that regex pattern will not replace any '^' in the string.

re.sub(r'[^a-zA-Z ^0-9]', '', 'Hi, Joe, look up ^ there.')

'Hi Joe look up ^ there'

should be
re.sub(r'[^a-zA-Z 0-9]', '', sample)

Downgrade Python Version

Thinc and Spacy require Python 3.7 - the conda environment instructions say to use Python 3.8.

Training the model with gridsearch outside of the pipeline.

Due to the computational expense of vectorizing raw text data, if the model is trained via the full pipeline, then for every param combo in the gridsearch, the training data is revectorizing unnecessarily. Also the .fit method for pipeline does not allow for passing parameters to do more robust things such as early stopping.

Time Difference:
full pipeline - several minutes to train one param combo
outside pipeline - 2 seconds to train one param combo all the way to early stopping limit

Proposed Solution:
create preprocess pipeline -> prepocess training data -> train model -> add best_estimator_ to pipeline via nesting

Unused variables in compute_coherence_values

In your function for computing coherence values in LS_DS_414_Topic_Modeling_Lecture.ipynb, both tokens and stream are unused, which means that the parameter path is also unused. Recommend removing them.

Requirements - update

update numpy to numpy==1.16 to avoid gensim breaking


add:
import warnings
warnings.filterwarnings('ignore')

to avoid this:

DeprecationWarning: Calling np.sum(generator) is deprecated, and in the future will give a different result. Use np.sum(np.from_iter(generator)) or the python sum builtin instead.
score += np.sum(cnt * logsumexp(Elogthetad + Elogbeta[:, int(id)]) for id, cnt in doc)

happening about 100 times.

Update Pandas code to 1.0

From Maxie:

pointer:
df['brand'] = df['brand'].apply(lambda x: x.lower())
can be simplified to
df['brand'] = df['brand'].str.lower()

Pip installation issues

pip install -r requirements.txt

Results in...

ERROR: Could not find a version that satisfies the requirement mkl-fft (from -r requirements.txt (line 45)) (from versions: none)
ERROR: No matching distribution found for mkl-fft

And then also...

ERROR: Could not find a version that satisfies the requirement mkl-random (from -r requirements.txt (line 52)) (from versions: none)
ERROR: No matching distribution found for mkl-random (from -r requirements.txt (line 52))

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.