Predict boston house prices using shallow learning
Lib para criação de DataApps de forma simples: streamlit via pip
para executar o streamlit: $ streamlit run app.py
Pandas Profilling install: pip install https://github.com/pandas-profiling/pandas-profiling/archive/master.zip
Criando o VENV:
# Vem instalado com o PIP, não precisa instalar o VirtualEnv
MACOS
$ virtualenv -p python3 venv
# Windows (Gitbash)
$ cd /c/Projects/semana-datascience
$ virtualenv -p python3 venv
Ativando o VENV (faça isso toda vez que for executar o projeto):
MACOS
$ source venv/bin/activate
# Windows (Prompt)
> cd C:\Projects\semana-datascience
> venv\Scripts\activate.bat
$ flask run --host=0.0.0.0
$ FLASK_ENV=development flask run -h 0.0.0.0
*Download it Datasets from GOOGLE DRIVE (add it to: automated-programming/datasets)
-
Instalar o python3 via gerenciador de pacote do Sistema Operacional
# MacOS X $ brew install python3 # Linux $ apt-get install python3 # Windows 10 (GitBash) $ /c/Users/ilton/AppData/Local/Programs/Python/Python38/python.exe -m pip install --upgrade pip
-
Remover o elo (link) do python2 para tornar o python3 como default
# MacOS X $ nano ~/.bash_profile $ nano ~/.zprofile # Ubuntu $ nano ~/.bashrc
$ sudo nano ~/.zprofile
# bash_profile AND .zshrc # aliases alias pip=pip3 alias python=python3
// if dont want to use zsh, add it to bash_profile:
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
-
Configuração do Virtual Env (VENV)
-
Criação do VENV
# Vem instalado com o PIP, não precisa instalar o VirtualEnv $ virtualenv -p python3 venv
-
Ativando o VENV (faça isso toda vez que for executar o projeto)
# MacOS $ source venv/bin/activate # Windows (Gitbash) $ /c/Projects/gaesi/msdaf/predictive/venv/Scripts/activate.bat # Windows (Prompt) > cd C:\Projects\gaesi\msdaf\predictive > venv\Scripts\activate.bat
-
-
Instalando as dependências com as versões unificadas
# MAC $ pip install -r requirements_mac.txt # WINDOWS $ pip install -r requirements_win.txt
-
CASO ocorra erro no pandas profilling:
$ pip install https://github.com/pandas-profiling/pandas-profiling/archive/master.zip
-
Criando o Kernel para o jupyter para que ele "visualize" as dependências instaladas
$ ipython kernel install --user --name=ms_daf
-
Selecionando o Kernel no Jupyter
-
SE NÃO INSTALAR CORRETAMENTE SIGA OS PRÓXIMOS PASSOS
-
Instalar o jupyter (execute esses comandos com o VENV ativo)
# Todos Sistemas Operacionais $ pip install jupyter notebook $ pip freeze > requirements.txt # MAC $ pip freeze > requirements_mac.txt # WINDOWS $ pip freeze > requirements_win.txt
-
Instalando a dependencia da computação em núvem (floydhub):
# Todos Sistemas Operacionais $ pip install -U floyd-cli
-
Instalar o gerenciador de extensões do jupyter
$ pip install jupyter_contrib_nbextensions
OBSERVAÇÃO: Não atualize (upgrade) o pip! O tensorflow 1.9 é compatível com o pip instalado neste processo! Caso faça o Upgrade, execute o comando a seguir, com o env ativo:
$ sudo pip install --force-reinstall pip==10.0.1
Se aparecer stacktrace no import do tensorflow no arg async significa que existem 2 pythons interpreters rodando o tensorflow e você deve executar um uninstall do tensorflow fora do env conda:
$ deactivate
$ pip uninstall tensorflow
edit /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
127.0.0.1 docker discovery cassandra rabbit gateway documents ui oracle jupyter
127.0.0.1 modulos redis identidades elk onlyoffice elasticsearch dashboard kibana
127.0.0.1 integracoes-gateway integracoes-documents integracoes-ui sinprocesso
127.0.0.1 integracoes-modulos integracoes-identidades
127.0.0.1 integracoes-configserver integracoes-discovery
Settings > Project Structure > Exclude Folders: data & microsets
Run it notebook: http://localhost:8888/notebooks/automated-programming/CEAF/CEAF_AIRunner_FactoryModels.ipynb