-
Notifications
You must be signed in to change notification settings - Fork 69
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: