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
# 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 |
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 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', |
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
# 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])) | |
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
SELECT name FROM employees | |
WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL); |