Skip to content

Instantly share code, notes, and snippets.

View abdalimran's full-sized avatar
💻
Focusing

Abdullah Al Imran abdalimran

💻
Focusing
View GitHub Profile
PassengerId Survived Pclass Name Sex Age SibSp Parch Ticket Fare Cabin Embarked
1 0 3 Braund, Mr. Owen Harris male 22 1 0 A/5 21171 7.25 S
2 1 1 Cumings, Mrs. John Bradley (Florence Briggs Thayer) female 38 1 0 PC 17599 71.2833 C85 C
3 1 3 Heikkinen, Miss. Laina female 26 0 0 STON/O2. 3101282 7.925 S
4 1 1 Futrelle, Mrs. Jacques Heath (Lily May Peel) female 35 1 0 113803 53.1 C123 S
5 0 3 Allen, Mr. William Henry male 35 0 0 373450 8.05 S
6 0 3 Moran, Mr. James male 0 0 330877 8.4583 Q
7 0 1 McCarthy, Mr. Timothy J male 54 0 0 17463 51.8625 E46 S
8 0 3 Palsson, Master. Gosta Leonard male 2 3 1 349909 21.075 S
9 1 3 Johnson, Mrs. Oscar W (Elisabeth Vilhelmina Berg) female 27 0 2 347742 11.1333 S
PassengerId Pclass Name Sex Age SibSp Parch Ticket Fare Cabin Embarked
892 3 Kelly, Mr. James male 34.5 0 0 330911 7.8292 Q
893 3 Wilkes, Mrs. James (Ellen Needs) female 47 1 0 363272 7 S
894 2 Myles, Mr. Thomas Francis male 62 0 0 240276 9.6875 Q
895 3 Wirz, Mr. Albert male 27 0 0 315154 8.6625 S
896 3 Hirvonen, Mrs. Alexander (Helga E Lindqvist) female 22 1 1 3101298 12.2875 S
897 3 Svensson, Mr. Johan Cervin male 14 0 0 7538 9.225 S
898 3 Connolly, Miss. Kate female 30 0 0 330972 7.6292 Q
899 2 Caldwell, Mr. Albert Francis male 26 1 1 248738 29 S
900 3 Abrahim, Mrs. Joseph (Sophie Halaut Easu) female 18 0 0 2657 7.2292 C
@abdalimran
abdalimran / y.csv
Last active May 8, 2018 05:33
y = x^2 + 5
x y = f(x) = x² + 5
-6 41
-5 30
-4 21
-3 14
-2 9
-1 6
0 5
1 6
2 9
gamma = 0.001
x = 6
iterations = 5000
for i in range(0,iterations):
x_gradient = 2*x
x1 = x - gamma * x_gradient
x = x1
print("iterations =",iterations,"\nx = ",x)
import sympy as sp
x = sp.Symbol('x')
f = x**2 + 5
f_prime = f.diff(x)
print(f_prime)
import numpy as np
def func(x):
return x**2+5
x = np.array([-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6])
y = func(x)
print(x)
print(y)
@abdalimran
abdalimran / tab.md
Last active November 13, 2017 13:27
x y = f(x) = x^2+5
-6 41
-5 30
-4 21
-3 14
-2 9
-1 6
0 5
1 6
#include <iostream>
#include <vector>
#include <set>
#include <cstring>
#include <string>
#include <map>
#include <queue>
#include <algorithm>
using namespace std;
library("dplyr")
df1 <- data.frame(a = 1:5, b=letters[1:5])
df2 <- data.frame(a = 1:3, b=letters[1:3])
anti_join(df1,df2)
#!/bin/bash
# Created by: Abdullah Al Imran
# Email: abdalimran@gmail.com
#Adding PPA
add-apt-repository -y ppa:atareao/atareao
add-apt-repository -y ppa:caffeine-developers/ppa
add-apt-repository -y ppa:diesch/testing
add-apt-repository -y ppa:eugenesan/ppa