Hi, my name is EKO WAHYUDIHARTO
I'm just an ordinary man


Trustworthy | Competent | Harmonious | Loyal | Adaptive | Collaborative

PAST

PRESENT

FUTURE

TAKE A LOOK @ WHAT I RECORD AND WRITE

Something that might be useful for anyone who have passion in computer science, quality control circle and project management

`
  • Posted on Thursday December 03, 2020
    Data:Questionnaire data from mall visitors contains sex, age, salary & shopping score (200 rows) Mission:How to predict the probability of shopping score from given age & salary Library used:PandasMatplotlibScikit  Code:import pandas as pdimport matplotlib.pyplot as pltfrom sklearn.naive_bayes import GaussianNBurl = 'https://raw.githubusercontent.com/kokocamp/vlog101/master/vlog101.csv'vlog125 = pd.read_csv(url)vlog125.head()X = vlog125[['Usia','Gaji (juta)']]y = vlog125['Skor Belanja (1-100)']nb = GaussianNB()nb.fit(X,y)usia = input("Usia (thn): ")usia = int(usia)gaji = input("Gaji (juta): ")gaji = int(gaji)data = [usia,gaji]print("Prediksi Skor Belanja (1-100): ", nb.predict([data]))plt.scatter(vlog122[['Gaji (juta)']],y, color='green')plt.scatter(gaji,nb.predict([data]), color='red') I wrapped the scenario in a Youtube video below.Thank you for for visiting this blog & subs my channel.   Continue Reading »

I LIVE IN JAKARTA

Jakarta is the political, economic and cultural capital of Indonesia. ... Around 230 languages are spoken here and you'll find a wealth of different cultures and communities throughout the capital. ... Jakarta's world-class tourist attractions are renowned across the globe.