This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.iml | |
.gradle | |
/local.properties | |
/.idea/workspace.xml | |
/.idea/libraries | |
.DS_Store | |
/build | |
/captures | |
.externalNativeBuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MODELYEAR | MAKE | MODEL | VEHICLECLASS | ENGINESIZE | CYLINDERS | TRANSMISSION | FUELTYPE | FUELCONSUMPTION_CITY | FUELCONSUMPTION_HWY | FUELCONSUMPTION_COMB | FUELCONSUMPTION_COMB_MPG | CO2EMISSIONS | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2014 | ACURA | ILX | COMPACT | 2 | 4 | AS5 | Z | 9.9 | 6.7 | 8.5 | 33 | 196 | |
2014 | ACURA | ILX | COMPACT | 2.4 | 4 | M6 | Z | 11.2 | 7.7 | 9.6 | 29 | 221 | |
2014 | ACURA | ILX HYBRID | COMPACT | 1.5 | 4 | AV7 | Z | 6 | 5.8 | 5.9 | 48 | 136 | |
2014 | ACURA | MDX 4WD | SUV - SMALL | 3.5 | 6 | AS6 | Z | 12.7 | 9.1 | 11.1 | 25 | 255 | |
2014 | ACURA | RDX AWD | SUV - SMALL | 3.5 | 6 | AS6 | Z | 12.1 | 8.7 | 10.6 | 27 | 244 | |
2014 | ACURA | RLX | MID-SIZE | 3.5 | 6 | AS6 | Z | 11.9 | 7.7 | 10 | 28 | 230 | |
2014 | ACURA | TL | MID-SIZE | 3.5 | 6 | AS6 | Z | 11.8 | 8.1 | 10.1 | 28 | 232 | |
2014 | ACURA | TL AWD | MID-SIZE | 3.7 | 6 | AS6 | Z | 12.8 | 9 | 11.1 | 25 | 255 | |
2014 | ACURA | TL AWD | MID-SIZE | 3.7 | 6 | M6 | Z | 13.4 | 9.5 | 11.6 | 24 | 267 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import ipdb | |
class KFoldXV(): | |
def __init__(self, folds=5) : | |
self.folds = folds | |
""" | |
Input : | |
----- | |
data : input dataset as tupple (X,y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import ipdb | |
class KFoldXV(): | |
def __init__(self, folds=5) : | |
self.folds = folds | |
""" | |
Input : | |
----- | |
data : input dataset as tupple (X,y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gfile=$1 | |
# gfile_ID=(${gfile//// }) | |
gfile_ID=$1 | |
# f1 = ${f1_[0]} | |
echo "Make sure you extract the file ID from the google link" | |
echo "e.g. from https://drive.google.com/open?id=1kKWoV0QCbeIuFt85beQgJ4v0lujaXobJ extract 1kKWoV0QCbeIuFt85beQgJ4v0lujaXobJ" | |
echo "The code then is run as follow : bash gdrive.sh 1kKWoV0QCbeIuFt85beQgJ4v0lujaXobJ" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Whatsapp status 30s splitter by Salomon Kabongo | |
""" | |
import argparse | |
import os | |
import moviepy.editor as mpy | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser( | |
description="A Python code to replace vowel by numbers corresponding to alphabetical order ") | |
parser.add_argument("-string", "--string_txt", default="National Center for Supercomputing Applications") | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias dsa='docker stop $(docker ps -a -q)' # Docker stop all | |
alias dc='docker-compose' | |
alias dcu='dc up' | |
alias dcuf='dc up --force-recreate' | |
alias dcd='dc down' | |
alias dcs='dc start' | |
alias dcr='dc restart' | |
alias dcst='dc stop' | |
alias dcb='dc build' # Docker compose build | |
alias dil='docker image ls' # Docker image list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\[\033[1;32m\]\u\[\033[m\]@\[\033[1;36m\]\h:\[\033[93m\]\w\[\033[31m\]\$(parse_git_branch)\[\033[00m\] \n$ " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load the 'git' plugin | |
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh | |
function parse_git_branch() { | |
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p' | |
} | |
COLOR_DEF=$'%f' | |
COLOR_USR=$'%F{32}' | |
COLOR_DIR=$'%F{149}' |