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

Sample code from my blog posts on Medium and my personal website.

NotificationsYou must be signed in to change notification settings

Polaris000/BlogCode

Repository files navigation

Untitled 51

This is a repository of code samples from my blogposts. I'm writing on Medium at the moment. You can find mehere.


Articles

Link to the article on MediumSample CodePublish DateTopics
Pandas: apply, map or transform?CodeJanuary, 2023jupyter-notebook, pandas, python
Improving the performance of NumPy codeCodeOctober, 2022jupyter-notebook, numpy, pandas, matplotlib, numba
Dissecting the Birthday ParadoxCodeApril, 2022jupyter-notebook, statistics, pandas, matplotlib
How do Chatbots Understand?CodeFebruary, 2022rasa, python, chatbot, nlu
Handling Chatbot Failure GracefullyCodeDecember, 2021rasa, python, chatbot, nlu
Evaluating Multi-label ClassifiersCodeNovember, 2021classification, sklearn, ml, metrics
Rasa Chatbot v2 (not a post)CodeOctober, 2021rasa, python, chatbot, nlu
Building a Chatbot with RasaCodeSeptember, 2021rasa, python, chatbot, nlu
How Imports Work in PythonCodeJune, 2021python, imports
Python: Decorators in OOPCodeJanuary, 2021python, oop, decorators
How Neural Networks Solve the XOR ProblemCodeNovember, 2020python, jupyter-notebook, matplotlib
Understanding Dynamic ProgrammingCodeOctober, 2020python, algorithms, dynamic programming
Understanding Maximum Likelihood EstimationTBAAugust, 2020statistics
Visualizing the Defective Chessboard ProblemCodeJan, 2020algorithms

Star History Chart

Star History Chart

Checkoutstar-history.com to get a star plot like the one above.

Also, if you found this repository useful, please do leave a star!


Usage

  • Fork this repo
  • Clone it
https://github.com/Polaris000/BlogCode.git
  • Create an environment with the required packages installed. (More info below)
  • Navigate to a project
  • Check the README inside each project for information specific to it.

Managing environments and dependencies

  • Creating an environment is straightforward. Though there are a few ways to do it,conda is a reliable way to go about it. Install conda fromhere.

  • To create an environment run:

    $ conda create --name <env_name> python=3.8.10
  • After the setup is complete, activate the env.

    $ conda activate <env_name>
  • The packages required to run these code samples are mainly of two kinds:

    • Rasa dependencies
    • Python data visualization and machine learning libraries
  • If you want to install both, userequirements/requirements.txt in your env

    (env)$ pip install -r requirements/requirements.txt
  • If you want to install rasa dependencies, userequirements/rasa_requirements.txt in your env

    (env)$ pip install -r requirements/rasa_requirements.txt
  • If you want to install python machine learning dependencies only, userequirements/non_rasa_requirements.txt in your env

    (env)$ pip install -r requirements/non_rasa_requirements.txt

Notes

  • If you're interested in usingRasa X for a more visual experience while improving and conversing with your bot, you'll require these additional steps:
    • Downgrade pip to fix a circular dependency issue
      $ pip install pip==20.2
    • Install rasa x
      $ pip install install rasa-x==0.38.1 --extra-index-url https://pypi.rasa.com/simple


[8]ページ先頭

©2009-2025 Movatter.jp