Coder Social home page Coder Social logo

ia_resources's Introduction

IA_resources

* Plotly functions to plot
* Communications settigns
* Pandas functions
* Time series functions
  • Use this repository as a submodule within the repository of the project in which it will be applied
git submodule add https://github.com/joanvelro/IA-resources.git
  • it is added the file .gitmodules
[submodule IA-resources]
path = IA-resources
url = https://github.com/joanvelro/IA-resources.git

Set up IA-ready environemnt

Install prerequisites

First steps (instructions for Mac or Linux). You need to install a recent version of Python, plus the packages 'keras', 'numpy', 'matplotlib' and 'jupyter'.

Install a recent Python

If you haven't installed a recent Python I recommend installing via Homebrew on a Mac from http://brew.sh and then installing Python via

brew install python

Configure a virtual environment

You can install the packages globally, but I suggest installing them in a 'virtualenv' virtual environment that basically encapsulates a full isolated Python environment. First you'll need to install a Python package manager called 'pip' thus:

easy_install pip

(If you get a permissions error, try adding a 'sudo' to the beginning, so 'sudo easy_install pip')

sudo easy_install pip

Now install virtualenv thus:

pip install virtualenv

Navigate to your home directory 'cd ~' and create a virtual environment. We'll call it 'my_virtual_env'

virtualenv my_virtual_env

Now, to switch your shell environment to be within the env:

source my_virtual_env/bin/activate
my_virtual_env/Scripts/activate

Great: now you can install the other prerequisites into this environment.

pip install numpy jupyter keras matplotlib tensorflow xgboost pyomo statsmodels

Export environmnet

pip freeze > requirements.txt

This file can then be used by collaborators to update virtual environments using the following command.

pip install -r requirements.txt

Open a new notebook

Now that everything's installed, you can open one of these web-based Python environments with the following command:

jupyter notebook

Create a new Python notebook from the "New" menu at the top-right:

You should now be able to run Python in your browser!

Deactivate the Environment

To return to normal system settings, use the deactivate command.

deactivate

(C) Jose Angel Velasco (@joanvelro) - 2021

ia_resources's People

Contributors

joanvelro avatar

Watchers

 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.