kifish


博客页面

字典序

idx = 1 cnt = 0 acc_all = [] pre_all = [] recall_all = [] f1_all = [] unable_idx = [] rootdir = os.path.abspath('./rawdata/ambiguous_sets') for fil...

Train_test_split

stratify是为了保持split前类的分布。比如有100个数据,80个属于A类,20个属于B类。如果train_test_split(X,y, test_size=0.25, stratify = y), 那么split之后数据如下: training: 75个数据,其中60个属于A类,1...

Tfidf

sublinear_tf : boolean, default=False Apply sublinear tf scaling, i.e. replace tf with 1 + log(tf). http://scikit-learn.org/stable/modules/genera...

请帮忙修下电脑1

#1 主机机箱内一般至少有2个风扇,1个风扇用于cpu散热,1个风扇用于显卡散热。cpu风扇的电源是插在主板上的,若开机进入bios时检查不到cpu风扇转,会发生FAN_ERROR,无法正常启动.cpu风扇必须插在对应位置,以华硕主板为例,CHA_FAN这个接口是不应该插cpu风扇的,若插错...

实时获取terminal的输出

实时获取terminal的输出而不是等到程序结束再获得输出。 通过子进程的方法,让父进程获取子进程的输出。 main.py import time import sys import subprocess import shlex shell_cmd = 'python sub.py' ...

Ui和逻辑分离尝试0

可以先学习这篇: -https://nikolak.com/pyqt-qt-designer-getting-started/ class Backend(QtCore.QThread): update_output = QtCore.pyqtSignal(str) def ...

Pyqt5

PyQT is a Python wrapper around the QT GUI application development framework 实际上很多项目都是用的pyqt4,但既然pyqt5已经出了。本次项目就干脆用pyqt5,方便后续维护。 然而,网上的资料还是pyqt4更多...

Python Pca Mnist

#http://blog.csdn.net/u010099080/article/details/53560426 mpl_toolkits.mplot3d 这个包在matplotlib里面 python mpl_toolkits installation issue: https://s...