Git Product home page Git Product logo

freqknowfit's Introduction

Fitting various linear-ish and non-parametric models for vocabulary inventory data for fun and profit.

Getting started

To start with you need to get your vocabulary data in the right format. The format assumed here is the "enriched" format which has word frequencies embedded and is produced by vocabaqdata. These files are named e.g. $DATASET.enriched.parquet. As an example in the following we will use svl12k.enriched.parquet. So go to vocabaqdata and get one of those files first.

Then install using Poetry:

$ poetry install

Nonparametric models --- visualisation

You can plot nonparametric transfer curves regressing using frequency like so:

$ poetry run python -m freqknowfit.nonparametric.transfer \
    /path/to/svl12k.enriched.parquet \
svl12k_transfer.png

Parametric models --- goodness of fit

The Snakefile contains workflows to fit various models to the vocabulary data and produce statistics about degree of fit AIC and so on. You can run it (single-threaded) like so:

$ poetry run snakemake -j1

freqknowfit's People

Contributors

frankier avatar

Watchers

 avatar Li-Hsin Chang avatar

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.