With the continuous expansion of software scale,software update and maintenance have become more and more important.However,frequent software code updates will make the software more likely to introduce new defects.So...With the continuous expansion of software scale,software update and maintenance have become more and more important.However,frequent software code updates will make the software more likely to introduce new defects.So how to predict the defects quickly and accurately on the software change has become an important problem for software developers.Current defect prediction methods often cannot reflect the feature information of the defect comprehensively,and the detection effect is not ideal enough.Therefore,we propose a novel defect prediction model named ITNB(Improved Transfer Naive Bayes)based on improved transfer Naive Bayesian algorithm in this paper,which mainly considers the following two aspects:(1)Considering that the edge data of the test set may affect the similarity calculation and final prediction result,we remove the edge data of the test set when calculating the data similarity between the training set and the test set;(2)Considering that each feature dimension has different effects on defect prediction,we construct the calculation formula of training data weight based on feature dimension weight and data gravity,and then calculate the prior probability and the conditional probability of training data from the weight information,so as to construct the weighted bayesian classifier for software defect prediction.To evaluate the performance of the ITNB model,we use six datasets from large open source projects,namely Bugzilla,Columba,Mozilla,JDT,Platform and PostgreSQL.We compare the ITNB model with the transfer Naive Bayesian(TNB)model.The experimental results show that our ITNB model can achieve better results than the TNB model in terms of accurary,precision and pd for within-project and cross-project defect prediction.展开更多
This paper aims to analyze the microblog data published by the official account in a certain province of China,and finds out the rule of Weibo that is easier to be forwarded in the new police media perspective.In this...This paper aims to analyze the microblog data published by the official account in a certain province of China,and finds out the rule of Weibo that is easier to be forwarded in the new police media perspective.In this paper,a new topic-based model is proposed.Firstly,the LDA topic clustering algorithm is used to extract the topic categories with forwarding heat from the microblogs with high forwarding numbers,then the Naive Bayesian algorithm is used to topic categories.The sample data is processed to predict the type of microblog forwarding.In order to evaluate this method,a large number of microblog online data is used to analysis.The experimental results show that the proposed method can accurately predict the forwarding of Weibo.展开更多
基金This work is supported in part by the National Science Foundation of China(Nos.61672392,61373038)in part by the National Key Research and Development Program of China(No.2016YFC1202204).
文摘With the continuous expansion of software scale,software update and maintenance have become more and more important.However,frequent software code updates will make the software more likely to introduce new defects.So how to predict the defects quickly and accurately on the software change has become an important problem for software developers.Current defect prediction methods often cannot reflect the feature information of the defect comprehensively,and the detection effect is not ideal enough.Therefore,we propose a novel defect prediction model named ITNB(Improved Transfer Naive Bayes)based on improved transfer Naive Bayesian algorithm in this paper,which mainly considers the following two aspects:(1)Considering that the edge data of the test set may affect the similarity calculation and final prediction result,we remove the edge data of the test set when calculating the data similarity between the training set and the test set;(2)Considering that each feature dimension has different effects on defect prediction,we construct the calculation formula of training data weight based on feature dimension weight and data gravity,and then calculate the prior probability and the conditional probability of training data from the weight information,so as to construct the weighted bayesian classifier for software defect prediction.To evaluate the performance of the ITNB model,we use six datasets from large open source projects,namely Bugzilla,Columba,Mozilla,JDT,Platform and PostgreSQL.We compare the ITNB model with the transfer Naive Bayesian(TNB)model.The experimental results show that our ITNB model can achieve better results than the TNB model in terms of accurary,precision and pd for within-project and cross-project defect prediction.
基金supported by Jiangsu Province University Students Practice Innovation and Entrepreneurship Training Program Project,Project Number:201910329031Y,Project Name:Research on the influence of new media platform of Public Security Colleges under the background of big data“Research on the reform and innovation of network public opinion teaching in public security colleges and universities from the perspective of overall national security”(Project No.C-B/2020/01/27)+1 种基金Jiangsu Province modern education technology research project“Research on the innovation of public security network public opinion teaching mode based on modern information technology”(Project No.2017-R-59195)The key teaching reform project of Jiangsu Police Institute“Research on the reconstruction of online and offline hybrid”golden course”teaching system of Internet information inspection course(Project No.2019A30).
文摘This paper aims to analyze the microblog data published by the official account in a certain province of China,and finds out the rule of Weibo that is easier to be forwarded in the new police media perspective.In this paper,a new topic-based model is proposed.Firstly,the LDA topic clustering algorithm is used to extract the topic categories with forwarding heat from the microblogs with high forwarding numbers,then the Naive Bayesian algorithm is used to topic categories.The sample data is processed to predict the type of microblog forwarding.In order to evaluate this method,a large number of microblog online data is used to analysis.The experimental results show that the proposed method can accurately predict the forwarding of Weibo.