Skip to content

Instantly share code, notes, and snippets.

View duyet's full-sized avatar

duyet duyet

View GitHub Profile
@duyet
duyet / docs to print
Last active September 19, 2017 01:11
https://drive.google.com/drive/folders/0B9Z_a3MtkjyAdm9sbGVpd2p1alE?usp=sharing
@duyet
duyet / plot_confusion_matrix.py
Last active August 31, 2017 06:04
A pretty confusion matrix
def plot_confusion_matrix(cm, classes,
normalize=False,
title='Confusion matrix',
cmap=plt.cm.Blues):
"""
See full source and example:
http://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html
This function prints and plots the confusion matrix.
Normalization can be applied by setting `normalize=True`.
@duyet
duyet / classification-with-tfidf-svm.ipynb
Created August 24, 2017 11:35
Text classification with SVM
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Độ phân_giải hiển_thị mặc_định trên hầu_hết các điện_thoại Xiaomi là 440 hoặc 480 DPI , kể_cả với chiếc Mi_Mix màn_hình 6,4 " tuyệt đẹp . Với mình đây là điều không_thể chấp_nhận được vì màn_hình 6,4 " mà hiển_thị lượng nội_dung chẳng khác_gì so với một cái điện_thoại 5 ". Lý_do mà mình không thích mức 480 DPI mặc_định của Mi_Mix là nó làm mọi thứ to lên một_cách ngớ_ngẩn , kỳ_dị và thao_tác cũng không tiện . Ngay cả bàn_phím cũng bỗng_nhiên to lên quá mức khiến việc gõ trở_nên khó_khăn vì phải với ngón tay lên cao hơn so với bình_thường .
Để chỉnh lại DPI , mình sử_dụng tool do chính mình phát_triển ( quảng_cáo chút_xíu : D ) . Anh em có_thể download và xem hướng_dẫn chi_tiết cách xài tool ở topic này : Mời anh_em thử công_cụ đổi độ_phân_giải hiển_thị cho máy Android , không cần root , không cần gõ lệnh .
Trên chiếc Mi_Mix của mình , mình đưa DPI xuống tận 400 thì mới cảm_thấy vừa_lòng , mức này tương_tự như con Lumia 1520 trước đây mình từng xài , cũng ngang_ngửa với Sony_Xperia Z_Ultra nhiều năm về trước