Skip to content

Instantly share code, notes, and snippets.

View revaldianggara's full-sized avatar

Revaldi Anggara revaldianggara

  • Indonesia
View GitHub Profile
@revaldianggara
revaldianggara / JDS_koef_kor.py
Last active December 17, 2020 12:34
JDS_Challanges
# Enter your code here. Read input from STDIN. Print output to STDOUT
'''
Implementasi rumus koefisien korelasi
r = (n*xy - x*y) / math.sqrt((n*xsq - x*x)*(n*ysq - y*y))
'''
import math as m
a = [15, 12, 8, 8, 7, 7, 7, 6, 5, 3] # Physics Scores
b = [10, 25, 17, 11, 13, 17, 20, 13, 9, 15] # History Scores
@revaldianggara
revaldianggara / JDS_document_classification.py
Last active July 17, 2023 04:23
JDS_document_classification
import sys
from sklearn.feature_extraction import text
from sklearn import pipeline
from sklearn import linear_model
import numpy
def build_model():
clf = pipeline.Pipeline([
('vect',
@revaldianggara
revaldianggara / JDS_forecast_passanger_traffic.py
Last active December 17, 2020 12:44
JDS_forecast_passanger_traffic
# Enter your code here. Read input from STDIN. Print output to STDOUT
import numpy as np
N = int(input())
data = []
temp = []
for i in range(N):
data.append(input().split())
temp.append(float(data[i][1]))
SELECT name FROM employees
WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL);