Ben Chuanlong Du's Blog

It is never too late to learn.

Clustering Algorithms in Machine Learning

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Centroid-based Clustering

  • K-means Clustering

  • K-medians Clustering

  • K-mediods Clustering

Hierarchical Clustering

  • Agglomerative Hierarchical Clustering

  • Divisive Hierarchical Clustering

Partional Clustering

Metrics for Machine Learning

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Accuracy

Precision/Recall

F1

Matthrews Correlation Coefficient (MCC)

ROC/AUC

Mean Absolute Error (MAE)

Mean Squared Error (MSE)

Root-mean-square Error (RMSE)

Tips on TPU

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

References

https://cloud.google.com/tpu/docs/tutorials/resnet-alpha-py

https://cloud.google.com/tpu/docs/tutorials

https://towardsdatascience.com/running-pytorch-on-tpu-a-bag-of-tricks-b6d0130bddd4

Calling Rust from Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://github.com/drrb/java-rust-example

https://users.rust-lang.org/t/ffi-java-call-a-rust-dynamic-library/19924

https://docs.rs/jni/0.14.0/jni/

https://stackoverflow.com/questions/30258427/calling-rust-from-java

https://github.com/java-native-access/jna …

Java Native Access

Java Native Interface

  1. You can call native code (typically C, C++ or Fortran) in Java using the Java Native Interface (JNI). For the code implemented in native code, you must use keyword "native" to tell the compiler that it is implemented outside Java. Also, you should surround the Java code which load the compile native code in static{}

Regularization in Machine Learning Models

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Regularization add a penalty term to the loss function in machine learning models. The type of regularizatin depends on the type of penalty used (not the type of the objective function …