Code Monkey home page Code Monkey logo

calm-notebooks's Introduction

๐Ÿ™‚ Vincent D. Warmerdam
โ”ฃโ”โ” ๐Ÿ“ฆ Open Source Packages
โ”ƒ   โ”ฃโ”โ” bulk              - simple bulk labelling interface
โ”ƒ   โ”ฃโ”โ” embetter          - embeddings ready for sklearn
โ”ƒ   โ”ฃโ”โ” doubtlab          - suite of tools to help find bad labels
โ”ƒ   โ”ฃโ”โ” drawdata          - draw datasets in jupyter
โ”ƒ   โ”ฃโ”โ” scikit-lego       - lego bricks for sklearn
โ”ƒ   โ”ฃโ”โ” scikit-partial    - partial_fit() pipelines for sklearn
โ”ƒ   โ”ฃโ”โ” scikit-bloom      - bloom transformers for sklearn
โ”ƒ   โ”ฃโ”โ” human-learn       - rule-based components for sklearn
โ”ƒ   โ”ฃโ”โ” sentence-models   - a different take on textcat
โ”ƒ   โ”ฃโ”โ” mktestdocs        - turn markdown files into pytest tests
โ”ƒ   โ”ฃโ”โ” lazylines         - lightweight utils for .jsonl wrangling
โ”ƒ   โ”ฃโ”โ” cluestar          - inspiration for your first text labels
โ”ƒ   โ”ฃโ”โ” durations         - pytest duration insights
โ”ƒ   โ”ฃโ”โ” tuilwindcss       - tailwindcss for textual tui apps
โ”ƒ   โ”ฃโ”โ” memo              - saves a whole log of time
โ”ƒ   โ”ฃโ”โ” skedulord         - makes cron a bit more fun
โ”ƒ   โ”ฃโ”โ” icepickle         - cool and safe storage for linear models
โ”ƒ   โ”—โ”โ” evol              - grammar for genetic heuristics
โ”ฃโ”โ” ๐Ÿ‘ Project Contributions
โ”ƒ   โ”ฃโ”โ” fairlearn         - contributed the CorrelationFilter
โ”ƒ   โ”ฃโ”โ” polars            - contributed the .pipe() method
โ”ƒ   โ”—โ”โ” BERTopic          - added lightweight sklearn pipeline support
โ”ฃโ”โ” โญ Online Projects
โ”ƒ   โ”ฃโ”โ” calmcode.io       - intermediate developer education
โ”ƒ   โ”ฃโ”โ” koaning.io        - personal blog
โ”ƒ   โ”—โ”โ” dearme.email      - reflection via a 30 day delay
โ”ฃโ”โ” ๐ŸŽ™๏ธ Popular Talks
โ”ƒ   โ”ฃโ”โ” Natural Intelligence is All You Need
โ”ƒ   โ”ฃโ”โ” Group-by statements that save the day
โ”ƒ   โ”ฃโ”โ” Tools to Improve Training Data
โ”ƒ   โ”ฃโ”โ” Optimal on Paper, Broken in Reality
โ”ƒ   โ”ฃโ”โ” Playing by the Rules-Based-Systems
โ”ƒ   โ”ฃโ”โ” How to Constrain Artificial Stupidity
โ”ƒ   โ”ฃโ”โ” The Profession of Solving the Wrong Problem
โ”ƒ   โ”ฃโ”โ” Winning with Simple, even Linear, Models
โ”ƒ   โ”—โ”โ” Untitled12.ipynb
โ”ฃโ”โ” ๐Ÿ”ฌ Random Experiments
โ”ƒ   โ”ฃโ”โ” scikit-prune   - prune scikit learn pipelines
โ”ƒ   โ”ฃโ”โ” gitlit         - tracking github action times across open source
โ”ƒ   โ”ฃโ”โ” sentimany      - many sentiment models, one repo
โ”ƒ   โ”ฃโ”โ” tokenwiser     - sklearn token tricks
โ”ƒ   โ”ฃโ”โ” clumper        - functional API for lists of dicts
โ”ƒ   โ”—โ”โ” whatlies       - exploration tools for word embeddings
โ”—โ”โ” ๐Ÿ‘จโ€๐Ÿ’ป Employer
    โ”ฃโ”โ” ๐ŸŽฒ :probabl.   - scikit-learn and friends
    โ”ƒ   โ”ฃโ”โ” scikit-churn      - safety rails for churn work
    โ”ƒ   โ”—โ”โ” scikit-playtime   - rethinking pipelines
    โ”ฃโ”โ” ๐Ÿ’ฅ Explosion   - developer tools for nlp
    โ”ƒ   โ”ฃโ”โ” prodigy-hf        - Prodigy integration for the HuggingFace stack
    โ”ƒ   โ”ฃโ”โ” prodigy-pdf       - Annotate PDFs via Prodigy
    โ”ƒ   โ”ฃโ”โ” prodigy-ann       - ANN techniques to find relevant subsets
    โ”ƒ   โ”ฃโ”โ” prodigy-segment   - Prodigy integration for Segment Anything
    โ”ƒ   โ”ฃโ”โ” prodigy-lunr      - Search techniques to find relevant subsets
    โ”ƒ   โ”ฃโ”โ” prodigy-whisper   - Transcribe audio with OpenAI's whisper models
    โ”ƒ   โ”ฃโ”โ” prodigy-tui       - Prodigy from the terminal
    โ”ƒ   โ”—โ”โ” cluestar          - inspiration for your first text labels
    โ”—โ”โ” ๐Ÿค– Rasa        - conversational software provider
        โ”ฃโ”โ” nlu examples      - custom nlu components for Rasa
        โ”ฃโ”โ” taipo             - data augmentation tools
        โ”—โ”โ” algo whiteboard   - nlp education

Follow me on twitter @fishnets88

calm-notebooks's People

Contributors

koaning avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calm-notebooks's Issues

Datecode not correct for "stocks".csv . (unsupported operand for "-")

This is probably an easy fix to correct.

In the "cvxpy-stocks.ipynb" notebook file, which I have downloaded locally, I am using the stocks file "bigmac.csv", to import my stock porfolio.

The line:
df_returns = df_stocks.set_index('date').diff()

Returns the error
TypeError: unsupported operand type(s) for -: 'str' and 'str'

I did try different permutations of the code, and interestingly, one version worked and another one did not.

The code in the example is close to this:
df_stocks = pd.read_csv("bigmac.csv").iloc[500:1800]
df_returns = df_stocks.set_index('date').diff()
mean_stock = df_returns.mean().values

It results in the error
TypeError: unsupported operand type(s) for -: 'str' and 'str'

However, the following code works:
df_stocks = pd.read_csv("bigmac.csv").iloc[500:1800]
df_returns = df_stocks.set_index('date')
differences = df_returns.diff' #**Note that diff here has no () following**
mean_stock = df_returns.mean()
values = mean_stock.values
print(values)

And the results are
[2029.88108208 723.91574523 3.5758786 ]

So, what is the difference between the two versions and why does yours work?

Thank You
Tom Cipollone

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.