Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python supercharged for the fastai library

License

NotificationsYou must be signed in to change notification settings

AnswerDotAI/fastcore

 
 

Repository files navigation

Python is a powerful, dynamic language. Rather than bake everything intothe language, it lets the programmer customize it to make it work forthem.fastcore uses this flexibility to add to Python featuresinspired by other languages we’ve loved, mixins from Ruby, and currying,binding, and more from Haskell. It also adds some “missing features” andclean up some rough edges in the Python standard library, such assimplifying parallel processing, and bringing ideas from NumPy over toPython’slist type.

Getting started

To install fastcore run:conda install fastcore -c fastai (if you useAnaconda, which we recommend) orpip install fastcore. For aneditableinstall,clone this repo and run:pip install -e ".[dev]". fastcore is testedto work on Ubuntu, macOS and Windows (versions tested are those shownwith the-latest suffixhere).

fastcore contains many features, including:

  • fastcore.test: Simple testing functions
  • fastcore.foundation: Mixins, delegation, composition, and more
  • fastcore.xtras: Utility functions to help with functional-styleprogramming, parallel processing, and more

To get started, we recommend you read throughthe fastcoretour.

Contributing

After you clone this repository, please runnbdev_install_hooks inyour terminal. This sets up git hooks, which clean up the notebooks toremove the extraneous stuff stored in the notebooks (e.g. which cellsyou ran) which causes unnecessary merge conflicts.

To run the tests in parallel, launchnbdev_test.

Before submitting a PR, check that the local library and notebooksmatch.

  • If you made a change to the notebooks in one of the exported cells,you can export it to the library withnbdev_prepare.
  • If you made a change to the library, you can export it back to thenotebooks withnbdev_update.

[8]ページ先頭

©2009-2025 Movatter.jp