Postingan

Menampilkan postingan dari Februari, 2022

Unek-unek (lagi)

Hidup dalam lingkaran kecurigaan bikin energi habis. Tiap hari ada aja yang dijadiin bahan bakar untuk bertikai. Udah jengah banget. Udah all out ngasih apapun, tapi tetep dianggep bajingan.  Sekali bajingan tetep bajingan. Hidup bajingan! (baca: gw bajingan)

How to Get The Replication Factor of HDFS Files

Gambar
 There are two ways to get the replication factor of HDFS files.  Suppose we want to obtain the replication factor of the 2016 Olympic's Tweet dataset stored in  /data/olympictweets2016rio.  The first way would be to run the following command from your terminal: which will be returning the replication factor as follows: As shown above, the replication factor is 10. However, in most cases, the default replication factor is 3. The other way would be simply using hadoop fs -ls command. Just make sure you state the path of the dataset from which you want to obtain the replication factor. The above command will be returning the information of the target directory or files. Have a look at the replication factor represented by the second column right after the permission part. Both ways return the exact replication factor, which in this case is 10. reference: StackOverflow

Training a Classifier

Gambar
As I write this post, I have been waiting for the training process to be completed. It's still the first epoch but it feels like it is taking ages. Forgive me, by the time I uploaded this image, it has reached the 4th epoch.  The first epoch is yet to be concluded. The accuracy is somehow far from my expectation. Anyway, it's still on the first epoch, so things might be about to change. At this stage, I am surprised by how much a love-hate relationship is involved in training a classifier. You get excited when your result meets your expected threshold but most of the time, you are left disappointed.  But still, I cannot find any other things quite interesting to do. I love how data can transform into valuable insight. I love how to spot patterns out of so-called trash and raw data. But really, I am just too lazy to explore further and anticipate more options of workaround to improve the classifier's performance. Not to mention how intimidated I am to see the progress made b

How to Print Today's Date and Current Timestamp in Python

Gambar
 

Shortcut Keys to Exit Full-screen Mode in Mac

 Just press Ctrl+Command+F