365sec / tdga Goto Github PK
View Code? Open in Web Editor NEWThe dga recognition
The dga recognition
Line 123 in 9747840
运行,配置正确的邮箱和用户名
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Line 156 in 9747840
在类初始化时调用
def load_model(self):
#load trained model
model_name = self.feature + '&' + self.method + '.model'
self.model = joblib.load(model_name)
Line 211 in 066a8ca
dga_test = dga_dect(options.feature, options.method)
dga_test.predict(options.input)
outcome = pd.read_csv(options.outcome, header = True, sep = ',')
print sample(outcome, 100)
Line 205 in 066a8ca
结果保存到输出文件中
Line 193 in 6472f5a
每一百条数据预测一次,增加函数def predict_domains(self, domains):
Line 138 in 6472f5a
修改为
class dga_dect():
def predict_domains(self, domains):
pass
def predict(self, filepath):
count = 0
fp = open(filepath,"rb")
domains = []
for line in fp:
if len(domains) > 100:
#每100条处理一次
self.predict_domains(domains)
domains=[]
domains.append(line)
#最后再处理一次
self.predict_domains(domains)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.