示例#1
0
///=================================================================================///
std::string 
dlder::command_converter()
{
	std::string command = replaceAll2( dlder_external_dl_mgr, "[INPUT]", dlder_url_img);
	command             = replaceAll2( command, "[OUTPUT]", dlder_img+".jpg");
	command             = replaceAll2( command, "[REFERER]", dlder_referer);
	std::cout<<command<<"\n";
	return command;
}
string ClassifierConfiguration::getCommand(){
    string cutOffPercentage = "0.5";
    if(_cutOff == 3) {
        cutOffPercentage = "0.66";
    }
    else if(_cutOff == 4) {
        cutOffPercentage = "0.75";
    }

    string tmpTransformers = replaceAll2(_transformer, "+", " -r "); //replaceAll(_transformer, "+", " -r ");
    return "classifier.py -p "+positivesFile+" -n "+negativesFile+" -s classifier/" + getPickleName() + " -f " + _featureSelector +  " -r " + tmpTransformers + " -t " + _classifier + " -c " + cutOffPercentage;
}