Requires a repackage goal in the spring-boot-maven plugin, as given below.
<build>
<plugins>
<plugin>| #!/bin/bash | |
| do_install() { | |
| set -e | |
| # Setting up sources.list | |
| sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros-latest.list' | |
| # Setting up keys | |
| sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 |
import numpy as np| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| sudo apt-get install build-essential -y | |
| sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev -y | |
| sudo apt-get install python3-numpy python3-pip python3-scipy python3-matplotlib python-dev python-matplotlib python-numpy python-scipy -y | |
| sudo apt-get install python-pip python-tk libqt4-dev libqt4-opengl-dev libeigen3-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev default-jdk ant -y |
System details : Ubuntu 14.04, python-2.7.
/usr/share/fonts/truetype/. For OSx systems, you'd just need to double-click the font file to install. sudo fc-cache -f -v
cd ~/.cache/matplotlib; rm fontList.cache; cd #for OSx systems, this file resides in ~/.matplotlib/Listing out the points suiting to a single programmer.
| #This is for training. Calculate all probabilities and store them in a vector. Better to store it in a file for easier access | |
| from __future__ import division | |
| import sys,os | |
| ''' | |
| 1. The spam and non-spam is already 50% . So they by default are 0.5 | |
| 2. Now we need to calculate probability of each word , in spam and non-spam separately | |
| 2.1 we can make two dictionaries, defaultdicts basically, for spam and non-spam | |
| 2.2 When time comes to calculate probabilities, we just need to substitute values | |
| ''' | |
| from collections import * |