SlideShare a Scribd company logo
1 of 34
Download to read offline
Experimental Results:
 Execution time
Time is defined as the fraction of relevant instances that are retrieved. In other words
it is said as the number of correctly predicted on better execution time .the time is carried
out using equation 4.3.
TIME=TP/TP+FN ……………….. (4.3)
 Memory :
Memory is defined as the number of correctly predicted on the better instances
divided by the total number of instances present in dataset and the memory is
calculated using equation 4.4.
MEMORY=TP+TN/TP+TN+FP+FN ……………(4.4)
Screenshot:
AlgorithmName Execution Time
FuzzyCmeansSA 2.098129553
KMeansClustering 22.37031143
The comparisonratiois measuredusingthe execution time;the fuzzycmeansandK-means
clustering.the K–meansperformsbetterexecutiontime.
AlgorithmName Memory
FuzzyCmeansSA 27.55
KMeansClustering 65.742966
The comparisonratiois measuredusingthe memory;the fuzzycmeansandK-meansclustering.the
K–meansperformsbettermemory.
Coding:
NLP_Process.java
/*
* To change thistemplate,choose Tools|Templates
* and openthe template inthe editor.
*/
package conceptdrivenclustering;
importCom.commonfiles.db_conn;
importedu.stanford.nlp.ling.HasWord;
importedu.stanford.nlp.ling.Sentence;
importedu.stanford.nlp.ling.TaggedWord;
importedu.stanford.nlp.tagger.maxent.MaxentTagger;
importjava.io.StringReader;
importjava.sql.ResultSet;
importjava.sql.*;
importjava.util.ArrayList;
importjava.util.List;
importjava.util.Vector;
importjava.util.logging.Level;
importjava.util.logging.Logger;
/**
*
* @author admini
*/
publicclassNLP_Process {
publicstaticvoidmain(Stringargs[]) {
try {
db_conndb = newdb_conn();
db.st.executeUpdate("truncate table tbl_Nlpprocess");
Vectorvstopword=newVector();
Stringsel1= "select*from stopwords";
ResultSetrset1= db.stat1.executeQuery(sel1);
while (rset1.next()) {
vstopword.add(rset1.getString(2));
}
Vectorvfilename =newVector();
Vectorvfilecontent=newVector();
Vectorvcomment= newVector();
//Vectorvdomain= newVector();
Stringsel_qry= "selectfilename,filecontentfromtbl_stopwordremoval;";
ResultSetrset=db.st.executeQuery(sel_qry);
while (rset.next()) {
Stringcomm = "";
Stringtitle = rset.getString(1);
vfilename.add(title);
Stringfilecontent=rset.getString(2);
// Stringdomain= rset.getString(3);
// vdomain.add(domain);
Stringcommentsarr[] =filecontent.split("");
for (intk= 0; k < commentsarr.length;k++) {
Stringword = commentsarr[k];
// out.println(word);
booleanflag= false;
for (intx = 0; x < vstopword.size();x++) {
if (word.trim().equalsIgnoreCase(vstopword.get(x).toString().trim())) {
flag= true;
}
}
if (flag== true) {
} else {
MaxentTaggertagger= new MaxentTagger("D:/left3words-wsj-0-18.tagger");
@SuppressWarnings("unchecked")
StringstringToBeParsed=word;
StringReaderreader=newStringReader(stringToBeParsed);
List<List<HasWord>>sentences=tagger.tokenizeText(reader); //new
BufferedReader(new FileReader("testdata.txt")));
for(List<HasWord>sentence :sentences) {
ArrayList<TaggedWord>tSentence=tagger.tagSentence(sentence);
Stringstr = Sentence.listToString(tSentence,false);
//System.out.println(str);
Stringstr1[] = str.split("");
for (inti = 0; i < str1.length;i++) {
// System.out.println("------"+ str1[i].toString());
if (str1[i].toString().contains("/NN")) {
comm = comm+ word+ " ";
}//jj //jjr
if (str1[i].toString().contains("/JJ")) {
comm = comm+ word+ " ";
}
if (str1[i].toString().contains("/JJR")) {
comm = comm+ word+ " ";
}
if (str1[i].toString().contains("/NNP")) {
comm = comm+ word+ " ";
}
}
}
}
}
Stringinsert_qry= "insertintotbl_Nlpprocessvalues('"+title + "','" + filecontent+"','" +
comm + "')";
//System.out.println("---"+insert_qry);
db.stat4.executeUpdate(insert_qry);
vcomment.add(comm);
}
} catch (Exceptionex) {
Logger.getLogger(NLP_Process.class.getName()).log(Level.SEVERE,null,ex);
}
}
}
FuzzyCmeansClustering.java
/*
* To change thistemplate,choose Tools|Templates
* and openthe template inthe editor.
*/
package clustering;
importCom.commonfiles.db_conn;
importCom.commonfiles.tableview1;
importjava.sql.*;
importjava.util.*;
/**
*
* @author Lap1
*/
publicclassFuzzyCmeansandSimulatedannealing{
publicstaticvoidmain(Stringargs[])
{
db_conndb=newdb_conn();
try {
double starttime1= System.nanoTime();
Runtime run= Runtime.getRuntime();
double free =run.freeMemory();
double total = run.totalMemory();
double max = run.maxMemory();
double used=total - free;
db.st.executeUpdate("truncate table tbl_cluster_fcmsa");
intcount = 0;
Stringsel_qry_sum= "selectcontents,count(wc) fromtbl_weight";
ResultSetrset22= db.st1.executeQuery(sel_qry_sum);
while (rset22.next()){
count = Integer.parseInt(rset22.getString(2));
}
intheat=5;
intcool=5;
intfmemberfun=0;
intmax1 = 0;
intmin = 0;
Vectorvc = newVector();
Stringsel_qry= "selectcontents,Max(wc) fromtbl_weight orderbywc";
System.out.println(sel_qry);
ResultSetrset1= db.st2.executeQuery(sel_qry);
while (rset1.next()){
max1 = Integer.parseInt(rset1.getString(2));
}
Stringsel_qry1= "selectcontents,Min(wc) fromtbl_weightorderbywc";
ResultSetrset2= db.st3.executeQuery(sel_qry1);
while (rset2.next()){
min = Integer.parseInt(rset2.getString(2));
}
//Mean-Max Membership
intfcenter= max1/2 + min/ 2 ;
System.out.println("------FuzzyCenter-------"+fcenter);
Stringsel_qry2= "select*from tbl_weightwhere wc>='" + (fcenter+heat) +"'
orderby wc";
System.out.println(sel_qry2);
ResultSetrset3= db.st3.executeQuery(sel_qry2);
while (rset3.next()){
String tags= rset3.getString(1);
tags = tags.replace("'","");
tags = tags.replace(",","");
String contents=rset3.getString(2);
//disease =disease.replace("'","");
//disease =disease.replace(",","");
String insert_Qry= "insertintotbl_cluster_fcmsavalues('"+tags + "','" +
contents+ "','" + rset3.getString(3) +"','" + rset3.getString(4) +"', '2' )";
System.out.println(insert_Qry);
db.sta.executeUpdate(insert_Qry);
}
Stringsel_qry4= "select*from tbl_weightwhere wc<='" + (fcenter+heat) + "'
orderby wc";
System.out.println(sel_qry4);
ResultSetrset5= db.st2.executeQuery(sel_qry4);
while (rset5.next()){
String tags= rset5.getString(1);
tags = tags.replace("'","");
tags = tags.replace(",","");
String contents=rset5.getString(2);
//disease =disease.replace("'","");
//disease =disease.replace(",","");
String insert_Qry= "insertintotbl_cluster_fcmsavalues('"+tags + "','" +
contents+ "','" + rset5.getString(3) +"','" + rset5.getString(4) +"','1' )";
System.out.println(insert_Qry);
db.stat4.executeUpdate(insert_Qry);
}
Runtime run1= Runtime.getRuntime();
double free1= run1.freeMemory();
double total1= run1.totalMemory();
double used1= total1- free1;
double total_exememrory=used1- used;
floatumemory= (float) total_exememrory/1024/10;
System.out.println("-UsedMemory--"+umemory);
double Endtime =System.nanoTime();
double ExeTime =(Endtime - starttime1) /60 / 60/10;
System.out.println("Total ExecutionTime "+ExeTime/10000);
Stringinsert_performence="insertintotbl_performence_fcmvalues( 'Fuzzy CmeansSA ',
'ExecutionTime','"+Math.abs(ExeTime )/10000+"') ";
db.st.executeUpdate(insert_performence);
Stringinsert_performence1="insertintotbl_performence_fcmvalues( 'FuzzyCmeansSA ',
'Memory', '"+Math.abs(umemory)+"') ";
db.st2.executeUpdate(insert_performence1);
tableview1tv=newtableview1();
tv.table("select*fromtbl_cluster_fcmsa","FuzzyCmeansClusterandSA");
} catch (Exceptionexpp) {
expp.printStackTrace();
}
}
}
Kmeans_Clustering.java
/*
* To change thistemplate,choose Tools|Templates
* and openthe template inthe editor.
*/
package clustering;
importCom.commonfiles.db_conn;
importCom.commonfiles.tableview1;
importjava.sql.*;
/**
*
* @author Lap1
*/
publicclassClustering{
publicstaticvoidmain(Stringargs[])
{
db_conndb=newdb_conn();
try{
double starttime1= System.nanoTime();
Runtime run= Runtime.getRuntime();
double free =run.freeMemory();
double total = run.totalMemory();
double maxmem=run.maxMemory();
double used=total - free;
ResultSetrset=db.sta1.executeQuery("select*fromtbl_weight");
while(rset.next())
{
Stringfilename=rset.getString(1);
Stringfilecontents=rset.getString(2);
Stringtags=rset.getString(3);
intwc=Integer.parseInt(rset.getString(4));
}
intmax=0;
Stringsel_max="Selectmax(wc) fromtbl_weight";
ResultSetrset1=db.stat4.executeQuery(sel_max);
while(rset1.next())
{
max=Integer.parseInt(rset1.getString(1));
}
intnoofcluster=4;
intstart=0;
intend=max/4;
for(inti=0;i<noofcluster;i++)
{
Stringsel_qry="select*fromtbl_weightwhere wc>"+start+"andwc<="+end+"";
Thread.sleep(2000);
tableview1tv=newtableview1();
tv.table(sel_qry,"Cluster---"+(i+1) );
start=end;
end=start+end;
}
Runtime run1= Runtime.getRuntime();
double free1= run1.freeMemory();
double total1= run1.totalMemory();
double used1= total1- free1;
double total_exememrory=used1- used;
floatumemory= (float) total_exememrory/1024/10;
System.out.println("-UsedMemory--"+umemory);
double Endtime =System.nanoTime();
double ExeTime =(Endtime - starttime1) /60 / 60/10;
System.out.println("Total ExecutionTime "+ExeTime/10000);
Stringinsert_performence="insertintotbl_performence_fcmvalues( 'KMeansClustering ',
'ExecutionTime','"+Math.abs(ExeTime )/10000+"') ";
db.st.executeUpdate(insert_performence);
Stringinsert_performence1="insertintotbl_performence_fcmvalues( 'KMeansClustering
', 'Memory', '"+Math.abs(umemory)+"') ";
db.st2.executeUpdate(insert_performence1);
}catch(Exceptionexpp)
{
expp.printStackTrace();
}
}
}

More Related Content

What's hot

Data Analytics and Simulation in Parallel with MATLAB*
Data Analytics and Simulation in Parallel with MATLAB*Data Analytics and Simulation in Parallel with MATLAB*
Data Analytics and Simulation in Parallel with MATLAB*Intel® Software
 
Parallel Processing with IPython
Parallel Processing with IPythonParallel Processing with IPython
Parallel Processing with IPythonEnthought, Inc.
 
4 dynamic memory allocation
4 dynamic memory allocation4 dynamic memory allocation
4 dynamic memory allocationFrijo Francis
 
Smarter Scheduling
Smarter SchedulingSmarter Scheduling
Smarter SchedulingDavid Evans
 
Router Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditionsRouter Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditionsMorteza Mahdilar
 
Memory allocation in c
Memory allocation in cMemory allocation in c
Memory allocation in cPrabhu Govind
 
Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
 Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version) Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)Tobias Pfeiffer
 
2Bytesprog2 course_2014_c8_units
2Bytesprog2 course_2014_c8_units2Bytesprog2 course_2014_c8_units
2Bytesprog2 course_2014_c8_unitskinan keshkeh
 
How fast is it really? Benchmarking in Practice (Ruby Version)
How fast is it really? Benchmarking in Practice (Ruby Version)How fast is it really? Benchmarking in Practice (Ruby Version)
How fast is it really? Benchmarking in Practice (Ruby Version)Tobias Pfeiffer
 
Introduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and TensorflowIntroduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and TensorflowOswald Campesato
 
Working with NS2
Working with NS2Working with NS2
Working with NS2chanchal214
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsDon William
 
Dynamic memory Allocation in c language
Dynamic memory Allocation in c languageDynamic memory Allocation in c language
Dynamic memory Allocation in c languagekiran Patel
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performancePrasenjit Dey
 
Introduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and KerasIntroduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and KerasOswald Campesato
 
Dynamic Memory allocation
Dynamic Memory allocationDynamic Memory allocation
Dynamic Memory allocationGrishma Rajput
 

What's hot (20)

Data Analytics and Simulation in Parallel with MATLAB*
Data Analytics and Simulation in Parallel with MATLAB*Data Analytics and Simulation in Parallel with MATLAB*
Data Analytics and Simulation in Parallel with MATLAB*
 
Parallel Processing with IPython
Parallel Processing with IPythonParallel Processing with IPython
Parallel Processing with IPython
 
4 dynamic memory allocation
4 dynamic memory allocation4 dynamic memory allocation
4 dynamic memory allocation
 
Smarter Scheduling
Smarter SchedulingSmarter Scheduling
Smarter Scheduling
 
~Ns2~
~Ns2~~Ns2~
~Ns2~
 
Router Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditionsRouter Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditions
 
Memory allocation in c
Memory allocation in cMemory allocation in c
Memory allocation in c
 
Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
 Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version) Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
Stop Guessing and Start Measuring - Benchmarking Practice (Poly Version)
 
2Bytesprog2 course_2014_c8_units
2Bytesprog2 course_2014_c8_units2Bytesprog2 course_2014_c8_units
2Bytesprog2 course_2014_c8_units
 
How fast is it really? Benchmarking in Practice (Ruby Version)
How fast is it really? Benchmarking in Practice (Ruby Version)How fast is it really? Benchmarking in Practice (Ruby Version)
How fast is it really? Benchmarking in Practice (Ruby Version)
 
Multirate sim
Multirate simMultirate sim
Multirate sim
 
Introduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and TensorflowIntroduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and Tensorflow
 
Working with NS2
Working with NS2Working with NS2
Working with NS2
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
 
H2 o berkeleydltf
H2 o berkeleydltfH2 o berkeleydltf
H2 o berkeleydltf
 
Dynamic memory Allocation in c language
Dynamic memory Allocation in c languageDynamic memory Allocation in c language
Dynamic memory Allocation in c language
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performance
 
Introduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and KerasIntroduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and Keras
 
Redux Thunk
Redux ThunkRedux Thunk
Redux Thunk
 
Dynamic Memory allocation
Dynamic Memory allocationDynamic Memory allocation
Dynamic Memory allocation
 

Similar to Result and screen shots

From Tensorflow Graph to Tensorflow Eager
From Tensorflow Graph to Tensorflow EagerFrom Tensorflow Graph to Tensorflow Eager
From Tensorflow Graph to Tensorflow EagerGuy Hadash
 
Apache Flink Training: DataStream API Part 1 Basic
 Apache Flink Training: DataStream API Part 1 Basic Apache Flink Training: DataStream API Part 1 Basic
Apache Flink Training: DataStream API Part 1 BasicFlink Forward
 
An eternal question of timing
An eternal question of timingAn eternal question of timing
An eternal question of timingPVS-Studio
 
Parallel Programming With Dot Net
Parallel Programming With Dot NetParallel Programming With Dot Net
Parallel Programming With Dot NetNeeraj Kaushik
 
Anirudh Koul. 30 Golden Rules of Deep Learning Performance
Anirudh Koul. 30 Golden Rules of Deep Learning PerformanceAnirudh Koul. 30 Golden Rules of Deep Learning Performance
Anirudh Koul. 30 Golden Rules of Deep Learning PerformanceLviv Startup Club
 
Program Assignment Process ManagementObjective This program a.docx
Program Assignment  Process ManagementObjective This program a.docxProgram Assignment  Process ManagementObjective This program a.docx
Program Assignment Process ManagementObjective This program a.docxwkyra78
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agorithamlilyMalar1
 
Introduction to MPI
Introduction to MPIIntroduction to MPI
Introduction to MPIyaman dua
 
Node.js System: The Landing
Node.js System: The LandingNode.js System: The Landing
Node.js System: The LandingHaci Murat Yaman
 
OPM Recipe designer notes
OPM Recipe designer notesOPM Recipe designer notes
OPM Recipe designer notested-xu
 
Writing a TSDB from scratch_ performance optimizations.pdf
Writing a TSDB from scratch_ performance optimizations.pdfWriting a TSDB from scratch_ performance optimizations.pdf
Writing a TSDB from scratch_ performance optimizations.pdfRomanKhavronenko
 
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docxweek3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docxalanfhall8953
 
Inference accelerators
Inference acceleratorsInference accelerators
Inference acceleratorsDarshanG13
 
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docxkatherncarlyle
 
A peek on numerical programming in perl and python e christopher dyken 2005
A peek on numerical programming in perl and python  e christopher dyken  2005A peek on numerical programming in perl and python  e christopher dyken  2005
A peek on numerical programming in perl and python e christopher dyken 2005Jules Krdenas
 
Exploitation of counter overflows in the Linux kernel
Exploitation of counter overflows in the Linux kernelExploitation of counter overflows in the Linux kernel
Exploitation of counter overflows in the Linux kernelVitaly Nikolenko
 

Similar to Result and screen shots (20)

Writing Faster Python 3
Writing Faster Python 3Writing Faster Python 3
Writing Faster Python 3
 
Keras and TensorFlow
Keras and TensorFlowKeras and TensorFlow
Keras and TensorFlow
 
Microkernel Development
Microkernel DevelopmentMicrokernel Development
Microkernel Development
 
From Tensorflow Graph to Tensorflow Eager
From Tensorflow Graph to Tensorflow EagerFrom Tensorflow Graph to Tensorflow Eager
From Tensorflow Graph to Tensorflow Eager
 
Apache Flink Training: DataStream API Part 1 Basic
 Apache Flink Training: DataStream API Part 1 Basic Apache Flink Training: DataStream API Part 1 Basic
Apache Flink Training: DataStream API Part 1 Basic
 
An eternal question of timing
An eternal question of timingAn eternal question of timing
An eternal question of timing
 
Parallel Programming With Dot Net
Parallel Programming With Dot NetParallel Programming With Dot Net
Parallel Programming With Dot Net
 
Anirudh Koul. 30 Golden Rules of Deep Learning Performance
Anirudh Koul. 30 Golden Rules of Deep Learning PerformanceAnirudh Koul. 30 Golden Rules of Deep Learning Performance
Anirudh Koul. 30 Golden Rules of Deep Learning Performance
 
Program Assignment Process ManagementObjective This program a.docx
Program Assignment  Process ManagementObjective This program a.docxProgram Assignment  Process ManagementObjective This program a.docx
Program Assignment Process ManagementObjective This program a.docx
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agoritham
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
Introduction to MPI
Introduction to MPIIntroduction to MPI
Introduction to MPI
 
Node.js System: The Landing
Node.js System: The LandingNode.js System: The Landing
Node.js System: The Landing
 
OPM Recipe designer notes
OPM Recipe designer notesOPM Recipe designer notes
OPM Recipe designer notes
 
Writing a TSDB from scratch_ performance optimizations.pdf
Writing a TSDB from scratch_ performance optimizations.pdfWriting a TSDB from scratch_ performance optimizations.pdf
Writing a TSDB from scratch_ performance optimizations.pdf
 
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docxweek3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
week3_srcDoWhileLoopFactorial.javaweek3_srcDoWhileLoopFactoria.docx
 
Inference accelerators
Inference acceleratorsInference accelerators
Inference accelerators
 
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
 
A peek on numerical programming in perl and python e christopher dyken 2005
A peek on numerical programming in perl and python  e christopher dyken  2005A peek on numerical programming in perl and python  e christopher dyken  2005
A peek on numerical programming in perl and python e christopher dyken 2005
 
Exploitation of counter overflows in the Linux kernel
Exploitation of counter overflows in the Linux kernelExploitation of counter overflows in the Linux kernel
Exploitation of counter overflows in the Linux kernel
 

Recently uploaded

Liquidity Decisions in Financial management
Liquidity Decisions in Financial managementLiquidity Decisions in Financial management
Liquidity Decisions in Financial managementshrutisingh143670
 
AnyConv.com__FSS Advance Retail & Distribution - 15.06.17.ppt
AnyConv.com__FSS Advance Retail & Distribution - 15.06.17.pptAnyConv.com__FSS Advance Retail & Distribution - 15.06.17.ppt
AnyConv.com__FSS Advance Retail & Distribution - 15.06.17.pptPriyankaSharma89719
 
Financial Preparation for Millennia.pptx
Financial Preparation for Millennia.pptxFinancial Preparation for Millennia.pptx
Financial Preparation for Millennia.pptxsimon978302
 
Abhay Bhutada Leads Poonawalla Fincorp To Record Growth In FY24
Abhay Bhutada Leads Poonawalla Fincorp To Record Growth In FY24Abhay Bhutada Leads Poonawalla Fincorp To Record Growth In FY24
Abhay Bhutada Leads Poonawalla Fincorp To Record Growth In FY24Champak Jhagmag
 
Thoma Bravo Equity - Presentation Pension Fund
Thoma Bravo Equity - Presentation Pension FundThoma Bravo Equity - Presentation Pension Fund
Thoma Bravo Equity - Presentation Pension FundAshwinJey
 
Uae-NO1 Rohani Amil In Islamabad Amil Baba in Rawalpindi Kala Jadu Amil In Ra...
Uae-NO1 Rohani Amil In Islamabad Amil Baba in Rawalpindi Kala Jadu Amil In Ra...Uae-NO1 Rohani Amil In Islamabad Amil Baba in Rawalpindi Kala Jadu Amil In Ra...
Uae-NO1 Rohani Amil In Islamabad Amil Baba in Rawalpindi Kala Jadu Amil In Ra...Amil baba
 
Crypto Confidence Unlocked: AnyKYCaccount's Shortcut to Binance Verification
Crypto Confidence Unlocked: AnyKYCaccount's Shortcut to Binance VerificationCrypto Confidence Unlocked: AnyKYCaccount's Shortcut to Binance Verification
Crypto Confidence Unlocked: AnyKYCaccount's Shortcut to Binance VerificationAny kyc Account
 
What is sip and What are its Benefits in 2024
What is sip and What are its Benefits in 2024What is sip and What are its Benefits in 2024
What is sip and What are its Benefits in 2024prajwalgopocket
 
OAT_RI_Ep18 WeighingTheRisks_Mar24_GlobalCredit.pptx
OAT_RI_Ep18 WeighingTheRisks_Mar24_GlobalCredit.pptxOAT_RI_Ep18 WeighingTheRisks_Mar24_GlobalCredit.pptx
OAT_RI_Ep18 WeighingTheRisks_Mar24_GlobalCredit.pptxhiddenlevers
 
Money Forward Integrated Report “Forward Map” 2024
Money Forward Integrated Report “Forward Map” 2024Money Forward Integrated Report “Forward Map” 2024
Money Forward Integrated Report “Forward Map” 2024Money Forward
 
Building pressure? Rising rents, and what to expect in the future
Building pressure? Rising rents, and what to expect in the futureBuilding pressure? Rising rents, and what to expect in the future
Building pressure? Rising rents, and what to expect in the futureResolutionFoundation
 
2024-04-09 - Pension Playpen roundtable - slides.pptx
2024-04-09 - Pension Playpen roundtable - slides.pptx2024-04-09 - Pension Playpen roundtable - slides.pptx
2024-04-09 - Pension Playpen roundtable - slides.pptxHenry Tapper
 
Uae-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Uae-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Uae-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Uae-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Introduction to Health Economics Dr. R. Kurinji Malar.pptx
Introduction to Health Economics Dr. R. Kurinji Malar.pptxIntroduction to Health Economics Dr. R. Kurinji Malar.pptx
Introduction to Health Economics Dr. R. Kurinji Malar.pptxDrRkurinjiMalarkurin
 
Kempen ' UK DB Endgame Paper Apr 24 final3.pdf
Kempen ' UK DB Endgame Paper Apr 24 final3.pdfKempen ' UK DB Endgame Paper Apr 24 final3.pdf
Kempen ' UK DB Endgame Paper Apr 24 final3.pdfHenry Tapper
 
ekthesi-trapeza-tis-ellados-gia-2023.pdf
ekthesi-trapeza-tis-ellados-gia-2023.pdfekthesi-trapeza-tis-ellados-gia-2023.pdf
ekthesi-trapeza-tis-ellados-gia-2023.pdfSteliosTheodorou4
 
Market Morning Updates for 16th April 2024
Market Morning Updates for 16th April 2024Market Morning Updates for 16th April 2024
Market Morning Updates for 16th April 2024Devarsh Vakil
 
Financial analysis on Risk and Return.ppt
Financial analysis on Risk and Return.pptFinancial analysis on Risk and Return.ppt
Financial analysis on Risk and Return.ppttadegebreyesus
 
Uk-NO1 Amil baba in pakistan Amil Baba in Karachi Black Magic Islamabad Kala ...
Uk-NO1 Amil baba in pakistan Amil Baba in Karachi Black Magic Islamabad Kala ...Uk-NO1 Amil baba in pakistan Amil Baba in Karachi Black Magic Islamabad Kala ...
Uk-NO1 Amil baba in pakistan Amil Baba in Karachi Black Magic Islamabad Kala ...Amil baba
 
ΤτΕ: Ανάπτυξη 2,3% και πληθωρισμός 2,8% φέτος
ΤτΕ: Ανάπτυξη 2,3% και πληθωρισμός 2,8% φέτοςΤτΕ: Ανάπτυξη 2,3% και πληθωρισμός 2,8% φέτος
ΤτΕ: Ανάπτυξη 2,3% και πληθωρισμός 2,8% φέτοςNewsroom8
 

Recently uploaded (20)

Liquidity Decisions in Financial management
Liquidity Decisions in Financial managementLiquidity Decisions in Financial management
Liquidity Decisions in Financial management
 
AnyConv.com__FSS Advance Retail & Distribution - 15.06.17.ppt
AnyConv.com__FSS Advance Retail & Distribution - 15.06.17.pptAnyConv.com__FSS Advance Retail & Distribution - 15.06.17.ppt
AnyConv.com__FSS Advance Retail & Distribution - 15.06.17.ppt
 
Financial Preparation for Millennia.pptx
Financial Preparation for Millennia.pptxFinancial Preparation for Millennia.pptx
Financial Preparation for Millennia.pptx
 
Abhay Bhutada Leads Poonawalla Fincorp To Record Growth In FY24
Abhay Bhutada Leads Poonawalla Fincorp To Record Growth In FY24Abhay Bhutada Leads Poonawalla Fincorp To Record Growth In FY24
Abhay Bhutada Leads Poonawalla Fincorp To Record Growth In FY24
 
Thoma Bravo Equity - Presentation Pension Fund
Thoma Bravo Equity - Presentation Pension FundThoma Bravo Equity - Presentation Pension Fund
Thoma Bravo Equity - Presentation Pension Fund
 
Uae-NO1 Rohani Amil In Islamabad Amil Baba in Rawalpindi Kala Jadu Amil In Ra...
Uae-NO1 Rohani Amil In Islamabad Amil Baba in Rawalpindi Kala Jadu Amil In Ra...Uae-NO1 Rohani Amil In Islamabad Amil Baba in Rawalpindi Kala Jadu Amil In Ra...
Uae-NO1 Rohani Amil In Islamabad Amil Baba in Rawalpindi Kala Jadu Amil In Ra...
 
Crypto Confidence Unlocked: AnyKYCaccount's Shortcut to Binance Verification
Crypto Confidence Unlocked: AnyKYCaccount's Shortcut to Binance VerificationCrypto Confidence Unlocked: AnyKYCaccount's Shortcut to Binance Verification
Crypto Confidence Unlocked: AnyKYCaccount's Shortcut to Binance Verification
 
What is sip and What are its Benefits in 2024
What is sip and What are its Benefits in 2024What is sip and What are its Benefits in 2024
What is sip and What are its Benefits in 2024
 
OAT_RI_Ep18 WeighingTheRisks_Mar24_GlobalCredit.pptx
OAT_RI_Ep18 WeighingTheRisks_Mar24_GlobalCredit.pptxOAT_RI_Ep18 WeighingTheRisks_Mar24_GlobalCredit.pptx
OAT_RI_Ep18 WeighingTheRisks_Mar24_GlobalCredit.pptx
 
Money Forward Integrated Report “Forward Map” 2024
Money Forward Integrated Report “Forward Map” 2024Money Forward Integrated Report “Forward Map” 2024
Money Forward Integrated Report “Forward Map” 2024
 
Building pressure? Rising rents, and what to expect in the future
Building pressure? Rising rents, and what to expect in the futureBuilding pressure? Rising rents, and what to expect in the future
Building pressure? Rising rents, and what to expect in the future
 
2024-04-09 - Pension Playpen roundtable - slides.pptx
2024-04-09 - Pension Playpen roundtable - slides.pptx2024-04-09 - Pension Playpen roundtable - slides.pptx
2024-04-09 - Pension Playpen roundtable - slides.pptx
 
Uae-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Uae-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Uae-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Uae-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Introduction to Health Economics Dr. R. Kurinji Malar.pptx
Introduction to Health Economics Dr. R. Kurinji Malar.pptxIntroduction to Health Economics Dr. R. Kurinji Malar.pptx
Introduction to Health Economics Dr. R. Kurinji Malar.pptx
 
Kempen ' UK DB Endgame Paper Apr 24 final3.pdf
Kempen ' UK DB Endgame Paper Apr 24 final3.pdfKempen ' UK DB Endgame Paper Apr 24 final3.pdf
Kempen ' UK DB Endgame Paper Apr 24 final3.pdf
 
ekthesi-trapeza-tis-ellados-gia-2023.pdf
ekthesi-trapeza-tis-ellados-gia-2023.pdfekthesi-trapeza-tis-ellados-gia-2023.pdf
ekthesi-trapeza-tis-ellados-gia-2023.pdf
 
Market Morning Updates for 16th April 2024
Market Morning Updates for 16th April 2024Market Morning Updates for 16th April 2024
Market Morning Updates for 16th April 2024
 
Financial analysis on Risk and Return.ppt
Financial analysis on Risk and Return.pptFinancial analysis on Risk and Return.ppt
Financial analysis on Risk and Return.ppt
 
Uk-NO1 Amil baba in pakistan Amil Baba in Karachi Black Magic Islamabad Kala ...
Uk-NO1 Amil baba in pakistan Amil Baba in Karachi Black Magic Islamabad Kala ...Uk-NO1 Amil baba in pakistan Amil Baba in Karachi Black Magic Islamabad Kala ...
Uk-NO1 Amil baba in pakistan Amil Baba in Karachi Black Magic Islamabad Kala ...
 
ΤτΕ: Ανάπτυξη 2,3% και πληθωρισμός 2,8% φέτος
ΤτΕ: Ανάπτυξη 2,3% και πληθωρισμός 2,8% φέτοςΤτΕ: Ανάπτυξη 2,3% και πληθωρισμός 2,8% φέτος
ΤτΕ: Ανάπτυξη 2,3% και πληθωρισμός 2,8% φέτος
 

Result and screen shots

  • 1. Experimental Results:  Execution time Time is defined as the fraction of relevant instances that are retrieved. In other words it is said as the number of correctly predicted on better execution time .the time is carried out using equation 4.3. TIME=TP/TP+FN ……………….. (4.3)  Memory : Memory is defined as the number of correctly predicted on the better instances divided by the total number of instances present in dataset and the memory is calculated using equation 4.4. MEMORY=TP+TN/TP+TN+FP+FN ……………(4.4)
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. AlgorithmName Execution Time FuzzyCmeansSA 2.098129553 KMeansClustering 22.37031143 The comparisonratiois measuredusingthe execution time;the fuzzycmeansandK-means clustering.the K–meansperformsbetterexecutiontime.
  • 17. AlgorithmName Memory FuzzyCmeansSA 27.55 KMeansClustering 65.742966 The comparisonratiois measuredusingthe memory;the fuzzycmeansandK-meansclustering.the K–meansperformsbettermemory.
  • 18. Coding: NLP_Process.java /* * To change thistemplate,choose Tools|Templates * and openthe template inthe editor. */ package conceptdrivenclustering; importCom.commonfiles.db_conn; importedu.stanford.nlp.ling.HasWord; importedu.stanford.nlp.ling.Sentence; importedu.stanford.nlp.ling.TaggedWord; importedu.stanford.nlp.tagger.maxent.MaxentTagger; importjava.io.StringReader; importjava.sql.ResultSet; importjava.sql.*; importjava.util.ArrayList; importjava.util.List; importjava.util.Vector; importjava.util.logging.Level;
  • 19. importjava.util.logging.Logger; /** * * @author admini */ publicclassNLP_Process { publicstaticvoidmain(Stringargs[]) { try { db_conndb = newdb_conn(); db.st.executeUpdate("truncate table tbl_Nlpprocess"); Vectorvstopword=newVector(); Stringsel1= "select*from stopwords"; ResultSetrset1= db.stat1.executeQuery(sel1); while (rset1.next()) { vstopword.add(rset1.getString(2)); } Vectorvfilename =newVector(); Vectorvfilecontent=newVector(); Vectorvcomment= newVector();
  • 20. //Vectorvdomain= newVector(); Stringsel_qry= "selectfilename,filecontentfromtbl_stopwordremoval;"; ResultSetrset=db.st.executeQuery(sel_qry); while (rset.next()) { Stringcomm = ""; Stringtitle = rset.getString(1); vfilename.add(title); Stringfilecontent=rset.getString(2); // Stringdomain= rset.getString(3); // vdomain.add(domain); Stringcommentsarr[] =filecontent.split(""); for (intk= 0; k < commentsarr.length;k++) { Stringword = commentsarr[k]; // out.println(word); booleanflag= false; for (intx = 0; x < vstopword.size();x++) { if (word.trim().equalsIgnoreCase(vstopword.get(x).toString().trim())) { flag= true; }
  • 21. } if (flag== true) { } else { MaxentTaggertagger= new MaxentTagger("D:/left3words-wsj-0-18.tagger"); @SuppressWarnings("unchecked") StringstringToBeParsed=word; StringReaderreader=newStringReader(stringToBeParsed); List<List<HasWord>>sentences=tagger.tokenizeText(reader); //new BufferedReader(new FileReader("testdata.txt"))); for(List<HasWord>sentence :sentences) { ArrayList<TaggedWord>tSentence=tagger.tagSentence(sentence); Stringstr = Sentence.listToString(tSentence,false); //System.out.println(str); Stringstr1[] = str.split(""); for (inti = 0; i < str1.length;i++) { // System.out.println("------"+ str1[i].toString()); if (str1[i].toString().contains("/NN")) { comm = comm+ word+ " "; }//jj //jjr if (str1[i].toString().contains("/JJ")) {
  • 22. comm = comm+ word+ " "; } if (str1[i].toString().contains("/JJR")) { comm = comm+ word+ " "; } if (str1[i].toString().contains("/NNP")) { comm = comm+ word+ " "; } } } } } Stringinsert_qry= "insertintotbl_Nlpprocessvalues('"+title + "','" + filecontent+"','" + comm + "')"; //System.out.println("---"+insert_qry); db.stat4.executeUpdate(insert_qry); vcomment.add(comm); } } catch (Exceptionex) { Logger.getLogger(NLP_Process.class.getName()).log(Level.SEVERE,null,ex); } } }
  • 23. FuzzyCmeansClustering.java /* * To change thistemplate,choose Tools|Templates * and openthe template inthe editor. */ package clustering; importCom.commonfiles.db_conn; importCom.commonfiles.tableview1; importjava.sql.*; importjava.util.*; /** * * @author Lap1 */ publicclassFuzzyCmeansandSimulatedannealing{ publicstaticvoidmain(Stringargs[]) { db_conndb=newdb_conn();
  • 24. try { double starttime1= System.nanoTime(); Runtime run= Runtime.getRuntime(); double free =run.freeMemory(); double total = run.totalMemory(); double max = run.maxMemory(); double used=total - free; db.st.executeUpdate("truncate table tbl_cluster_fcmsa"); intcount = 0; Stringsel_qry_sum= "selectcontents,count(wc) fromtbl_weight"; ResultSetrset22= db.st1.executeQuery(sel_qry_sum); while (rset22.next()){ count = Integer.parseInt(rset22.getString(2)); } intheat=5;
  • 25. intcool=5; intfmemberfun=0; intmax1 = 0; intmin = 0; Vectorvc = newVector(); Stringsel_qry= "selectcontents,Max(wc) fromtbl_weight orderbywc"; System.out.println(sel_qry); ResultSetrset1= db.st2.executeQuery(sel_qry); while (rset1.next()){ max1 = Integer.parseInt(rset1.getString(2)); } Stringsel_qry1= "selectcontents,Min(wc) fromtbl_weightorderbywc"; ResultSetrset2= db.st3.executeQuery(sel_qry1); while (rset2.next()){ min = Integer.parseInt(rset2.getString(2)); }
  • 26. //Mean-Max Membership intfcenter= max1/2 + min/ 2 ; System.out.println("------FuzzyCenter-------"+fcenter); Stringsel_qry2= "select*from tbl_weightwhere wc>='" + (fcenter+heat) +"' orderby wc"; System.out.println(sel_qry2); ResultSetrset3= db.st3.executeQuery(sel_qry2); while (rset3.next()){ String tags= rset3.getString(1); tags = tags.replace("'",""); tags = tags.replace(",",""); String contents=rset3.getString(2); //disease =disease.replace("'",""); //disease =disease.replace(",",""); String insert_Qry= "insertintotbl_cluster_fcmsavalues('"+tags + "','" + contents+ "','" + rset3.getString(3) +"','" + rset3.getString(4) +"', '2' )"; System.out.println(insert_Qry); db.sta.executeUpdate(insert_Qry); } Stringsel_qry4= "select*from tbl_weightwhere wc<='" + (fcenter+heat) + "' orderby wc";
  • 27. System.out.println(sel_qry4); ResultSetrset5= db.st2.executeQuery(sel_qry4); while (rset5.next()){ String tags= rset5.getString(1); tags = tags.replace("'",""); tags = tags.replace(",",""); String contents=rset5.getString(2); //disease =disease.replace("'",""); //disease =disease.replace(",",""); String insert_Qry= "insertintotbl_cluster_fcmsavalues('"+tags + "','" + contents+ "','" + rset5.getString(3) +"','" + rset5.getString(4) +"','1' )"; System.out.println(insert_Qry); db.stat4.executeUpdate(insert_Qry); } Runtime run1= Runtime.getRuntime(); double free1= run1.freeMemory(); double total1= run1.totalMemory(); double used1= total1- free1;
  • 28. double total_exememrory=used1- used; floatumemory= (float) total_exememrory/1024/10; System.out.println("-UsedMemory--"+umemory); double Endtime =System.nanoTime(); double ExeTime =(Endtime - starttime1) /60 / 60/10; System.out.println("Total ExecutionTime "+ExeTime/10000); Stringinsert_performence="insertintotbl_performence_fcmvalues( 'Fuzzy CmeansSA ', 'ExecutionTime','"+Math.abs(ExeTime )/10000+"') "; db.st.executeUpdate(insert_performence); Stringinsert_performence1="insertintotbl_performence_fcmvalues( 'FuzzyCmeansSA ', 'Memory', '"+Math.abs(umemory)+"') ";
  • 29. db.st2.executeUpdate(insert_performence1); tableview1tv=newtableview1(); tv.table("select*fromtbl_cluster_fcmsa","FuzzyCmeansClusterandSA"); } catch (Exceptionexpp) { expp.printStackTrace(); } } } Kmeans_Clustering.java /* * To change thistemplate,choose Tools|Templates * and openthe template inthe editor. */ package clustering; importCom.commonfiles.db_conn; importCom.commonfiles.tableview1; importjava.sql.*; /** *
  • 30. * @author Lap1 */ publicclassClustering{ publicstaticvoidmain(Stringargs[]) { db_conndb=newdb_conn(); try{ double starttime1= System.nanoTime(); Runtime run= Runtime.getRuntime(); double free =run.freeMemory(); double total = run.totalMemory(); double maxmem=run.maxMemory(); double used=total - free; ResultSetrset=db.sta1.executeQuery("select*fromtbl_weight"); while(rset.next()) { Stringfilename=rset.getString(1); Stringfilecontents=rset.getString(2);
  • 32. Stringsel_qry="select*fromtbl_weightwhere wc>"+start+"andwc<="+end+""; Thread.sleep(2000); tableview1tv=newtableview1(); tv.table(sel_qry,"Cluster---"+(i+1) ); start=end; end=start+end; } Runtime run1= Runtime.getRuntime(); double free1= run1.freeMemory(); double total1= run1.totalMemory(); double used1= total1- free1; double total_exememrory=used1- used;
  • 33. floatumemory= (float) total_exememrory/1024/10; System.out.println("-UsedMemory--"+umemory); double Endtime =System.nanoTime(); double ExeTime =(Endtime - starttime1) /60 / 60/10; System.out.println("Total ExecutionTime "+ExeTime/10000); Stringinsert_performence="insertintotbl_performence_fcmvalues( 'KMeansClustering ', 'ExecutionTime','"+Math.abs(ExeTime )/10000+"') "; db.st.executeUpdate(insert_performence); Stringinsert_performence1="insertintotbl_performence_fcmvalues( 'KMeansClustering ', 'Memory', '"+Math.abs(umemory)+"') "; db.st2.executeUpdate(insert_performence1); }catch(Exceptionexpp) { expp.printStackTrace(); }
  • 34. } }