Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken examples #259

Open
matthaeusheer opened this issue Nov 29, 2018 · 0 comments
Open

Broken examples #259

matthaeusheer opened this issue Nov 29, 2018 · 0 comments

Comments

@matthaeusheer
Copy link

Hey

I just started using skills-ml and going through the examples. Some of them seem to be broken.

Example: Creating Corpus and Sampled Corpus

In section Creating Corpus with Criteria


KeyError Traceback (most recent call last)
in
----> 1 major_group = list(map(lambda c: c['onet_soc_code'][:2], corpus))

in (c)
----> 1 major_group = list(map(lambda c: c['onet_soc_code'][:2], corpus))

KeyError: 'onet_soc_code'

Filtered by Full O*NET SOC Code

Same as above.

In section Sampling from Corpus


TypeError Traceback (most recent call last)
in
1 from skills_ml.job_postings.sample import JobSampler
----> 2 job_sampler = JobSampler(corpus, random_state=42)
3 corpus = job_sampler.sample(10)

TypeError: init() missing 1 required positional argument: 'k'

In Reservoir Sampling


TypeError Traceback (most recent call last)
in
1 job_postings_generator = JobPostingCollectionSample()
----> 2 corpus = CorpusCreator(job_postings_generator, filter_func=major_group_filter_func)

TypeError: init() got an unexpected keyword argument 'filter_func'

If you are interested I might update this list. I am very interested in using skills-ml and familiarize myself with the functionalities.

Best,
Matthäus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant