Skip to content

Instantly share code, notes, and snippets.

View ngbala6's full-sized avatar
🏠
Data Scientist

Bala Murugan N G ngbala6

🏠
Data Scientist
View GitHub Profile
@ngbala6
ngbala6 / Simplifygist.py
Last active December 11, 2021 23:58
Model Building
# Importing Libraries
import pandas as pd
from sklearn.ensemble import RandomForestRegressor
from sklearn.impute import SimpleImputer
from collections import Counter
from category_encoders import TargetEncoder
from sklearn.metrics import mean_squared_error
import numpy as np
from xgboost import XGBRegressor
from sklearn.model_selection import train_test_split
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
upstream ws-backend {
server <your local ip eg. 192.168.6.418:12345>; # this should be your application running in ip and port
}
server {
listen 9000 ssl; # this port will listen, if you don't have ssl, remove ssl word
server_name <domain name or ip eg. 192.168.6.418 or example.bala.com>;
import streamlit as st
st.title("Hello Captain")
file_to_be_uploaded = st.file_uploader("Choose a file", type=['MP3', 'WAV])
RAWDATAPATH = "path to save the file"
def save_uploadedfile(uploadedfile):
global RAWDATAPATH
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ngbala6
ngbala6 / image_to_pixel_convert_and_store_csv.py
Created April 1, 2021 01:09
Pixel to Image Converter and Image to Pixel Converter and Store it to CSV
import numpy as np
import cv2
import pandas as pd
w =48
h = 48
# Load image
img = cv2.imread('1_0.jpg',0)