Skip to content

Instantly share code, notes, and snippets.

View Remonhasan's full-sized avatar
🐙
Hello, happy Friday!

Remon Hasan Remonhasan

🐙
Hello, happy Friday!
View GitHub Profile
@Remonhasan
Remonhasan / naive_bayes.py
Last active September 25, 2019 05:12
algorithm : Bank dataset with Naive Bayes / Research
# Author: Remon Hasan , University of Asia Pacific
#Efficient process for Pycharm compiler for python
#Naive bayes algorithms for decting the real note of money
#python linear library pandas / cmd command line: pip install pandas
import pandas as pd
#python numpy library / cmd command line: pip install numpy
import numpy as np
@Remonhasan
Remonhasan / titanic.py
Last active October 3, 2019 11:13
Dataset : Titanic with SVM / Research
#Author : Remon Hasan , University of Asia Pacific
# Machine Learning algorithm practice for research
#implemantation for google colab
#import library
import numpy as np
import pandas as pd
#read file
train = pd.read_csv('train.csv')
test = pd.read_csv('test.csv')
@Remonhasan
Remonhasan / iris.py
Last active September 25, 2019 05:11
Algorithm : Iris dataset with Naive Bayes / Research
# Author: Remon Hasan , University of Asia Pacific
#Efficient process for Pycharm compiler for python
#Naive bayes algorithms for decting the real note of money
#python linear library pandas / cmd command line: pip install pandas
import pandas as pd
#python numpy library / cmd command line: pip install numpy
import numpy as np
@Remonhasan
Remonhasan / applewatch.py
Last active September 25, 2019 05:10
Algorithm: AppleWatch dataset with DecisionTree / research
# Author Remon Hasan, University of Asia Pacific
# Applewatch dataset solve with supervised way
# implementation with google Colab
import pandas as pd
import numpy as np
applewatch= pd.read_csv('AppleWatch.csv')
# lebel
train = applewatch.drop('Heart',axis=1)
y= applewatch["Heart"]
@Remonhasan
Remonhasan / titanicagain.py
Last active May 1, 2020 11:30
Algorithm: Titanic dataset with KMeans/research
# Author : Remon Hasan
import matplotlib.pyplot as plt
from matplotlib import style
import numpy as np
from sklearn.cluster import KMeans
from sklearn import preprocessing
import pandas as pd
df = pd.read_excel('Titanic.xls')
@Remonhasan
Remonhasan / awlr.py
Last active September 25, 2019 05:09
Algorithm: Applewatch dataset with LinearRegression / research
# Author Remon Hasan, University of Asia Pacific
# Applewatch dataset solve with supervised way
# using LinearRegression
# implementation with google Colab
import pandas as pd
import numpy as np
applewatch= pd.read_csv('AppleWatch.csv')
# lebel
@Remonhasan
Remonhasan / applewatchKMeans.py
Created September 25, 2019 06:49
Algorithm: Applewatch dataset with KMeans / research
# Author Remon Hasan, University of Asia Pacific
# Applewatch dataset solve with unsupervised way
# using KMeans
# implementation with google Colab
import pandas as pd
import numpy as np
data = pd.read_csv('AppleWatch.csv')
# mapping gender
@Remonhasan
Remonhasan / Eular's Phi Function .cpp
Created March 22, 2020 09:32
Eular's Phi Function ( Brute Force )
/* Author : Remon Hasan
Problem : Finding coPrime */
#include<iostream>
#include<stdio.h>
using namespace std;
int gcd(int a,int b)
{
if(a%b==0)
@Remonhasan
Remonhasan / Sieve of Eratosthense Algorithm.cpp
Last active April 25, 2020 13:10
Sieve of Eratosthense [ Find Primes ]
/* Author: Remon Hasan
Algorithm: Sieve of Eratosthense
Problem: Find all primes within given range
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
void sieve(ll N)
{
@Remonhasan
Remonhasan / BigMod Algorithm.cpp
Last active April 25, 2020 13:09
Big Mod [ Find Mod Answer ]
/* Author: Remon Hasan
Algorithm: BigMod */
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll BigMod(ll base, ll power, ll mod)
{