You are on page 1of 6

Home

Day
Week
Month
Year
Contact
Search

inputmustbeemptyoraformatstring
{Visits(58)PostedbyGarrithGraham2.6k}
HiIkeepgettinganerrorwiththis:
%%generatesampledata
K=3;
numObservarations=12000;
dimensions=20;
data=fopen('M.dat','rt');
C=textscan(data,[numObservarationsdimensions]);

???Errorusing==>textscanSecondinputmustbeemptyoraformatstring.
Itryedthismethod:
%%formatdata
%#readthelistoffeatures
fid=fopen('kddcup.names','rt');
C=textscan(fid,'%s%s','Delimiter',':','HeaderLines',1);
fclose(fid);
%#determinetypeoffeatures
C{2}=regexprep(C{2},'.$','');%#remove"."attheend
attribNom=[ismember(C{2},'symbolic');true];%#nominalfeatures
%#buildformatstringusedtoread/parsetheactualdata
frmt=cell(1,numel(C{1}));
frmt(ismember(C{2},'continuous'))={'%f'};%#numericfeatures:readasnumber
frmt(ismember(C{2},'symbolic'))={'%s'};%#nominalfeatures:readasstring
frmt=[frmt{:}];
frmt=[frmt'%s'];%#addtheclassattribute
%#readdataset
fid=fopen('kddcup.data_10_percent_corrected','rt');
C=textscan(fid,frmt,'Delimiter',',');
fclose(fid);
%#convertnominalattributestonumeric
ind=find(attribNom);
G=cell(numel(ind),1);
fori=1:numel(ind)
[C{ind(i)},G{i}]=grp2idx(C{ind(i)});
end
%#allnumericdataset
M=cell2mat(C);
data=M;
%%generatesampledata
K=3;
numObservarations=12000;
dimensions=20;
data=textscan([numObservarationsdimensions]);
%%cluster
opts=statset('MaxIter',500,'Display','iter');
[clustIDX,clusters,interClustSum,Dist]=kmeans(data,K,'options',opts,...
'distance','sqEuclidean','EmptyAction','singleton','replicates',3);
%%plotdata+clusters
figure,holdon
scatter3(data(:,1),data(:,2),data(:,3),50,clustIDX,'filled')
scatter3(clusters(:,1),clusters(:,2),clusters(:,3),200,(1:K)','filled')
holdoff,xlabel('x'),ylabel('y'),zlabel('z')
%%plotclustersquality
figure
[silh,h]=silhouette(data,clustIDX);
avrgScore=mean(silh);
%%Assigndatatoclusters
%calculatedistance(squared)ofallinstancestoeachclustercentroid
D=zeros(numObservarations,K);%initdistances
fork=1:K
%d=sum((xy).^2).^0.5
D(:,k)=sum(((datarepmat(clusters(k,:),numObservarations,1)).^2),2);

end
%findforallinstancestheclusterclosettoit
[minDists,clusterIndices]=min(D,[],2);
%compareitwithwhatyouexpectittobe
sum(clusterIndices==clustIDX)

butgettheerror:
???Errorusing==>textscan
Invalidfileidentifier.Usefopento
generateavalidfileidentifier.
Errorin==>kmeansat37
data=textscan([numObservarations
dimensions]);

Answer(1)matlabclusteranalysisfuzzy

#1
{Answeredbyzellus}
Yourcalloftextscanisnotcompliantwiththesyntaxrequired.Thefollowingsignaturesarevalid:
C=textscan(fid,'format')
C=textscan(fid,'format',N)
C=textscan(fid,'format','param',value)
C=textscan(fid,'format',N,'param',value)
C=textscan(str,...)
[C,position]=textscan(...)

Relatedquestions
1.inputmustbeemptyoraformatstring
HiIkeepgettinganerrorwiththis:%%generatesampledataK=3numObservarations=12000dimensions=20data=fopen('M.dat','rt')C=
textscan(data,[numObservarationsdimensions])???Errorusing==textscanSecondinputmustbeemptyoraformatst...
2.matlabclusteringanddataformats
LeadingonfromapreviousquestionFCMClusteringnumericdataandcsv/excelfileImnowtryingtofigureouthowtotaketheoutputed
informationandcreateaworkable.datfileforusewithclusteringinmatlab.%#readthelistoffeaturesfid=fopen(...
3.clusteringandmatlab
HiimtryingtoclustersomedataIhavefromthekdd1999cupdatasettheoutputfromthefilelookslikethis:
0,tcp,http,SF,239,486,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,8,8,0.00,0.00,0.00,0.00,1.00,0.00,0.00,19,19,1.00,0.00,0.05,0.00,0.00,0.00,0.00,0.00,nor...
4..datfilehowtocreateonebasedonexceldocument
Ihavea.csvfileinmymatlabfolderwith38columnsandabout48thousandentries.Iwashopingonusingthefindclusterguibutitonly
accepts.datfiles.HowdoIcreatea.datfileinmatlaborspecificallyhowdoIconvertthe.csvfileintoa.da...
5.FuzzyKmodesclusteringhowtofindtheclustercenters
I'mtryingtounderstandfuzzykmodesalgorithm(lookmainlyatpage3)inordertoimplementit.I'mstuckatthecalculationofcluster
centerstheysaidasshowninthepicIneedtoknowwhetherthefollowingistrueorfalseandpleasecorrectmeIn...
6.fuzzykmodeclusteringmembershipvaluecalculation
IwassearchingforaclusteringalgorithmtofuzzyclustercategoricalattributesandIfoundthekmodesalgorithmI'vegotthewayitworksbut
I'mnotunderstandingifthemembershiporbelongingmatrixiscalculatedthesamewayasthismatrixinfuz...
7.fuzzycmeanscategoricaldata
canthefuzzycmeansappliedonnonnumericaldatasets?i.ecategoricalormixednumericalandcategorical..ifyes(Ihopeso:():howwe
calculateclustercenters?IfNO,whatisthealternative..howtofuzzyclustersthesedata?Ineedtheresp...
8.clusterdataMatlabfunction
IamusingMatlabclusterdatafunctiontoclassifymydata(noiseandnonnoise)into2categories:noiseandnonnoisegroups.Thefunction
workswellexceptthatsometimesitnamesallnoisedataasgroup1andallnonnoisedataasgroup2.Sometimesi...
9.AgglomerativeClusteringinMatlab
Ihaveasimple2dimensionaldatasetthatIwishtoclusterinanagglomerativemanner(notknowingtheoptimalnumberofclusterstouse).
TheonlywayI'vebeenabletoclustermydatasuccessfullyisbygivingthefunctiona'maxclust'value.Forsimp...
10.clusteringdataoutputsirregularplotgraph
OkIwillrundownwhatimtryingtoachieveandhowItryedtoachieveitthenIwillexplainwhyItryedthismethod.Ihavedatafromthe
KDDcup1999initsoriginalformatthedatahas494kofrowswith42columns.Mygoalistryingtoclusterthisd...
11.isthereadiscretizedmethodavailableinmatlab?
Ihaveasetattributeslikesoinmydatafile:Theselectedattributesconsistsofbothdiscreteandcontinuousattributetypes.Theattributes
ProtocolTypeandServiceareoftypediscreteandtheattributeSrcBytes,DstBytes,Countareofcontinuou...
12.isthereadiscretizedmethodavailableinmatlab?
Ihaveasetattributeslikesoinmydatafile:Theselectedattributesconsistsofbothdiscreteandcontinuousattributetypes.Theattributes
ProtocolTypeandServiceareoftypediscreteandtheattributeSrcBytes,DstBytes,Countareofcontinuou...
13.scripterrorrelatingtonamingconvention
Ihavesomedatastoredinamatfilespreadsheetwhenitrytorunmykmeans.mscriptIgetthiserrorandIcantworkoutwhatsgoingon?
AttempttoexecuteSCRIPTkmeansasafunctionErrorin==kmeansat10[clustIDX,clusters,interClustSum,Dist]=...
14.kmeansmatlabcodefeedowndatasource
IwanttotrythisKmeansclusteringcodeonmyownfilehowdoIchangeitsoitdoesntcreaterandominformationbutreadsitfrommyown
datasource?%%generatesampledataK=3numObservarations=100dimensions=3data=rand([numObservarationsdi...
15.FCMClusteringnumericdataandcsv/excelfile
HiIaskedapreviousquestionthatgaveareasonableanswerandIthoughtIwasbackontrack,Fuzzycmeanstcpdumpclusteringinmatlab
theproblemisthepreprocessingstageofthebelowtcp/udpdatathatIwouldliketorunthroughmatlabsfcmclust...
16.Fuzzycmeanstcpdumpclusteringinmatlab

HiIhavesomedatathatsrepresentedlikethis:
0,tcp,http,SF,239,486,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,8,8,0.00,0.00,0.00,0.00,1.00,0.00,0.00,19,19,1.00,0.00,0.05,0.00,0.00,0.00,0.00,0.00,normal.
Itsfromthekddcup1999whichwasbasedonthedarpaset....
17.Techniquesforfindingrepeattransactionsbetweencustomerswithmisspellingsorotherchangeininformation?
Thisisn'taSQLServerspecificquestionbuttheremightbetSQLspecificoptionshere.I'vegotabunchofcustomerdetailsmanyofthem
cancelandresignupfortheirservice.Theygetanentirelynewaccountandourdatavalidationissketchyatbes...
18.exceptioninthreadonKMeansclustering[error]
IencounterproblemonKmeansclustering,Iactuallyneedstoclusterdatainputfromnotepadintosomeclusters.howeverIencounter
exceptionandthecpdeisnotworkingwell.kindlyneedshelponthiserrorExceptioninthread"main"java.lang.NullPoin...
19.Generatingclustersfromadjacencymatrix/edgelistinR
Iamtryingtofindpotentialclustersorgroupsofnodes(forummessages,inthiscase).Inthecurrentdata,eachnode(message)hasbeen
tentativelygroupedtogetherwithnothermessages,andthatgroupgivenaname.So,weknowthatmsgID1hasbeen...
20.DataclusteringinKMeansAlgorithmusingbinarytreestructure
IamhavingtroubleingeneratingcodeforKMeansclusteringinjava.Ihavealreadyknownthealgorithmbutit'sveryhardtowriteininjava
code.MyassignmentistoretrievedatafromdatabasethenruntheClusteringwithKMeans,inthiscase,thedat...
21.Groupnpointsinkclustersofequalsize[duplicate]
PossibleDuplicate:KmeansalgorithmvariationwithequalclustersizeEDIT:likecasperOnepointitouttomethisquestionisaduplicate.
Anywayshereisamoregeneralizedquestionthatcoverthisone:http://stats.stackexchange.com/questions/8744/cl...
22.FriendGrouping
Iamwritingaprogramthatfetchesthelinksbetweenfriendsonfacebookandthencreatefriendshipgroupsfromtheselinks.Ihavegotasfar
ascreatingthedatastructurewhichissomethinglike[friend_id:[mutual_friend_id,mutual_friend_id,mutual...
23.Javalibrarymethodoralgorithmtoestimateaggregatestringsimilarity?
Ihaveresponsesfromuserstomultiplechoicequestions,e.g.(roughly):Married/SingleMale/FemaleAmerican/Latin
American/European/Asian/AfricanWhatIwantistoestimatesimilaritybyaggregatingallresponsesintoasinglefieldwhichcanbecompared
...
24.MarkovClusteringAlgorithm
I'vebeenworkingthroughthefollowingexampleofthedetailsoftheMarkovClusteringalgorithm:
http://www.cs.ucsb.edu/~xyan/classes/CS595D2009winter/MCL_Presentation2.pdfIfeellikeIhaveaccuratelyrepresentedthealgorithmbut
Iamnotgettingth...
25.Clusteringalistusingboundaryfunction
Givenalist,I'dliketodivideitintoclustersusinga"boundaryfunction".Suchfunctionwouldtaketwoconsecutiveelementsofthelistand
decidewhetherornottheyshouldbelongtothesamecluster.Soessentially,Iwantsomethinglikethis:clus...
26.GetpointIDsafterclustering,usingpython[duplicate]
PossibleDuplicate:PythonkmeansalgorithmIwanttocluster10000indexedpointsbasedontheirfeaturevectorsandgettheiridsafter
clusteringi.e.cluster1:[p1,p3,p100,...],cluster2:[...]...IsthereanywaytodothisinPython?Thx~P.s.Th...
27.Clusteringasparsedatasetofbinaryvectors
IfIhaveasparsedatasetwhereeachdataisdescribedbyavectorof1000elements,eachelementofthisvectorcanbeeither0or1(alotof0
andsome1),doyouknowanydistancefunctionthatcouldhelpmetoclusterthem?Issomethinglikeeuclid...
28.R:Unusedargumentlabelinhclust
I'musingthefollowingcodetobuildandhierarchicalcluster:datread.table(textConnection("pdbPAEHSS1avd_model.pdb3028.0
3920.01ave_model.pdb3083.04019.01ij8_model.pdb2958.03830.01ldo_model.pdb2889.03754.01ldq_model.pdb2758.03590.01lel_m...
29.Kmeansgoingexceptionallyslowwhenclusteringmorethan3documents[closed]
I'mtryingtousekmeanstoclustersimilardocumentstoeachother.IamusingNLTK'sKMeans.WhenIonlycluster3documents,ittakes
lessthan5seconds.ButonceIaddinafourthdocument,itdoesn'tfinish(Icutitoutafter10minutes).Whenther...
30.ClusteringstringsinR(isitpossible?)
Ihaveadatasetwithacolumnthatiscurrentlybeingtreatedasafactorwith1000+levels.Thesearevaluesforthecolumn.Iwouldliketo
cleanupthisdata.Somevaluesarestringslike"18+5=13"and"518=13",Iwouldliketheclustering...
31.Clusteringalgorithmtoclusterobjectsbasedontheirrelationweight
Ihavenwordsandtheirrelatednessweightthatgivesmean*nmatrix.I'mgoingtousethisforasearchalgorithmbuttheproblemisIneedto
clustertheenteredkeywordsbasedontheirpairwiserelation.Solet'ssayifthekeywordsare{tennis,feder...
32.Howtobestdoserversidegeoclustering?
Iwanttodopreclusteringforasetofapprox.500,000points.Ihaven'tstartedyetbutthisiswhatIhadthoughtIwoulddo:storeallpointsin
alocalSOLRindexdetermine"naturalclusterpositions"accordingtosomeadministrativeinformation(big...
33.Clusteradjacencymatrixofdifferentsizes
Ihavecreatedadjacencymatrixfordirectedgraphsofdifferentsizes.Ihavearound30,000matrices,eachonaseparatetextfile.HowcanI
clusterthem,isthereanytoolsavailable.Whatisthebestwaytorepresentadirectedgraphforclustering.T...
34.SameresultfromKmeansandsequentialKmeans?
DoweobtainthesameresultifweapplyKmeansandsequentialKmeansmethodstothesamedatasetwiththesameinitialsettings?Explain
yourreasons.PersonallyIthinktheanswerisNo.TheresultobtainedbysequentialKmeansdependsonthepresent...
35.Excel2010CreateClusterGraph
IsthereawaytocreateclustergraphswithinExcel2010?Morespecifically,Iamlookingforthetypeofclustergraphwhichresemblesa
scattergraphasopposedtoabarchart.IamworkingwithkmeansandthebestIcanachieveinExcelatthemoment...
36.GoogleMapsClusteringMarkers
ihavealistofmarkersbutiwanttochangethemasaddress.vardata={"loc":[{"longitude":81.81718856098772,"latitude":
26.278657439364583},{"longitude":81.81291211952795,"latitude":26.199298735114475},{"longitude":81.74875180993064,"lat...
37.Denclue2.0inR
HasanyonesuccessfullyimplementedtheDenclue2.0algorithminR?(orMatlab)I'mgettingstuckconvertingthehillclimbingtoanEM
versionasoutlinedinthepaperhereI'vebeenabletoconstructthe1.0Algorithmbutamunsureofhowtoaccomplish...
38.HowcanIgetclusternumbercorrespondtodatausingkmeansclusteringtechniquesinR?[closed]
Iclustereddatabykmeansclusteringmethod,howcanigetclusternumbercorrespondtodatausingkmeansclusteringtechniquesinR?In
ordertogeteachrecordbelongstowhichcluster.example123213=1.12,132.32...
39.KMeansClusteringusingMahout
I'musingtheclusteringtechniquegivenhereforclusteringalargedataset,whichisgiveninMahoutexamples.However,whenIvisualizethe
particularclusteringIgetthefollowingfigure.I'mreallystrugglingtounderstandwhatthisactuallymeansa...
40.Opensourcedataminetools,searchingforagoodoption(GNUdataminingapps)[closed]
IwanttotestsomeappsfordatamininginGNU/LinuxDebian,Idownloaded"GnomeDataMineTools"from
http://www.togaware.com/datamining/gdatamine/Ifollowedtheinstructions,Iinstalledtheapp(s)andthenitsaysthatyoushouldrunthe
command:g...

41.WaystodetermineagroupofunitsinRTS
Lookingforanalgorithmthatcanbeusedtodeterminegroupsofunitsthatmovetogetherasasquadinarealtimestrategygamelike
StarCraft.ThedirectionthatIamcurrentlylookatisaclusteringalgorithmbuthavingahardtimefindingwhichone...
42.Combiningdifferentsimilaritiestobuildonefinalsimilarity
Imprettymuchnewtodataminingandrecommendationsystems,nowtryingtobuildsomekindofrecsystemforusersthathavesuch
parameters:cityeducationinterestTocalculatesimilaritybetweenthemimgonnaapplycosinesimilarityanddiscretesimil...
43.Howclusteringworks,especiallyStringclustering?
Iheardaboutclusteringtogroupsimilardata.IwanttoknowhowitworksinthespecificcaseforString.Ihaveatablewithmorethan
different100,000words.Iwanttoidentifythesamewordwithsomedifferences(eg.:house,house!!,hooouse,HoUse...
44.HighDimensionalDataClustering
Whatarethebestclusteringalgorithmstouseinordertoclusterdatawithmorethan100dimensions(sometimeseven1000).Iwould
appreciateifyouknowanyimplementationinC,C++orespeciallyC#.Thanksinadvance....
45.Iwonderhowclusteringalgorithmsareusedinwhichallrealworldapplications?[closed]
Whatallareapplicationsofclusteringalgorithms?Whichallrealworldapplicationsuseclusteringalgorithmsandforwhat?...
46.Clustering2dintegercoordinatesintosetsofatmostNpoints
Ihaveanumberofpointsonarelativelysmall2dimensionalgrid,whichwrapsaroundinbothdimensions.Thecoordinatescanonlybe
integers.IneedtodividethemintosetsofatmostNpointsthatareclosetogether,whereNwillbequiteasmallcut...
47.Numberclustering/partitioningalgorithm
Ihaveanordered1Darrayofnumbers.Boththearraylengthandthevaluesofthenumbersinthearrayarearbitrary.Iwanttopartitionthe
arrayintokpartitions,accordingtothenumbervalues,e.g.let'ssayIwant4partitions,distributedas30%...
48.Hierarchicalclusteringforbitsequences
ThisisahomeworkproblemandI'mfacingsomedifficultiestounderstandit.ThehomeworkquestionisClusterthefollowingbitsequences
usinghierarchicalclustering.Ifd(:,:)definesthedistacebetweentwobitsequencesaandb,d(a,b)=HammingDista...
49.Whatcustomizablemachinelearningtoolkitsareavailable?
I'mlookingforamachinelearningtoolkitthatwillallowmetospecifycustomsimilaritymeasuresaswellaschoosemyownrepresentations
forthedata.Cananyonepointmetoanysuchtoolkits?PreferablyPythonorJava.Thankyou....
50.PredictinClustering
InRlanguageisthereapredictfunctioninclusteringlikethewaywehaveinclassification?Whatcanweconcludefromtheclusteringgraph
resultthatwegetfromR,otherthatcomparingtwoclusters?...
51.Selectinganappropriatesimilaritymetric&assessingthevalidityofakmeansclusteringmodel
Ihaveimplementedkmeansclusteringfordeterminingtheclustersin300objects.Eachofmyobjecthasabout30dimensions.Thedistanceis
calculatedusingtheEuclideanmetric.IneedtoknowHowwouldIdetermineifmyalgorithmsworkscorrectly?Ica...
52.Unsupervisedequivalentofknearestneighbouralgorithm
knearestneighbourisasupervisedalgorithm.Itissuitabletoclassifyhighdimensionalitydata.Couldsomeonepleasementionafew
unsupervisedalgorithmsusedtoclassifyhighdimensionalitydataitems?...
53.DocumentClusteringBasics
So,I'vebeenmullingovertheseconceptsforsometime,andmyunderstandingisverybasic.Informationretrievalseemstobeatopicseldom
coveredinthewild...Myquestionsstemfromtheprocessofclusteringdocuments.Let'ssayIstartoffwithac...
54.ClustercentermeanofDBSCANinR?
UsingdbscaninpackagefpcIamabletogetanoutputof:dbscanPts=322MinPts=20eps=0.00501seed0233border872total87235butI
needtofindtheclustercenter(meanofclusterwithmostseeds).Cananyoneshowmehowtoproceedwiththis?...
55.Skipnodesduringbinarytreetraversal
Ineedtotraverseabinarytree,skippingthechildrenofanynodeforwhichaconditionismet.Thisimplementsatreeguidedclustering
approachtheleavesofasubtreeareconsideredaclusterwhentheycollectivelymeetthecondition.Itseemslike...
56.IsitpossibletoseethecurrentiterationnumberinOpenCV'scvKmeans2?
I'mtryingtoclusterareallylargedataset3030764x162into4000clustersusingthecvKmeans2functioninOpenCV2.1.Iwouldliketosee
whichiterationtheKmeansalgorithmiscurrentlyin(similartowhatisdisplayedinMatlab),butIdon'tseean...
57.Correlatingwordproximity
Let'ssayIhaveatexttranscriptofadialogueoveraperiodofaprox.1hour.Iwanttoknowwhatwordshappenincloseproximateytoone
another.WhattypeofstatisticaltechniquewouldIusetodeterminewhatwordsareclusteredtogetherandhowclo...
58.Singlelinkclustering
I'mlookingforawaytodosinglelinkclusteringwithOpenCV.Myscenario:Hundreds(potentiallythousands)offeaturevectors(vectors
dimensioncanbeupto~800features).Unknownnumberofclusters(likelytobemuchlowerthanthenumberofvectors...
59.Errorwhileclusteringdatawithkmeans
I'mtryingtoperformclusteringforkmeansalgorithmfortheinputdatashownhere:https://cwiki.apache.org/MAHOUT/clusteringof
syntheticcontroldata.htmlHoweverwhenthemapreducejobisabouttotakeplaceigettheerror11/10/1621:05:57INFOm...
60.KMeansalternativesandperformance
I'vebeenreadingaboutsimilaritymeasuresandimagefeatureextractionmostofthepapersrefertokmeansasagooduniformclustering
techniqueandmyquestionis,isthereanyalternativetokmeansclusteringthatperformsbetterforanspecificse...
61.Clusteringwithscipyclustersviadistancematrix,howtogetbacktheoriginalobjects
Ican'tseamtofindanysimpleenoughtutorialsordescriptionsonclusteringinscipy,soI'lltrytoexplainmyproblem:Itrytocluster
documents(hierarchicalagglomerativeclustering),andhavecreatedavectorforeachdocumentandproducedasym...
62.SeedselectionstrategiesforKmeans
IwonderwhatkindofseedselectionmethodsIcanapplytoKmeansalgorithm.Googlesearchwasn'tthathelpful.Anysuggestions?...
63.FromwheredoesGooglegettheabstractforeachofitssiteresults,thatitdisplaysonitssearchresultpage?
Iamworkingonaprojectinwhichihavetosearchfortermsonasearchengineandthenclustertheresultsontheircontextualsense.Soi
havetotreateachresultasadocument.unfortunately,thedatapresentalongwitheachresultontheresultpa...
64.WheretofindareliableKmedoid(Notkmeans)opensourcesoftware/tool?[closed]
IamlearningtheKmedoidsalgorithmsoIamsorryifIaskinappropriatequestions.AsIknow,theKmedoidsalgorithmimplementsaK
meansclusteringbutuseactualdatapointstobecentroidinsteadofmathematicalcalculatedmeans.AsIgoogledonline...
65.Howtogetflatclusteringcorrespondingtocolorclustersinthedendrogramcreatedbyscipy
Usingthecodepostedhere,Icreatedanicehierarchicalclustering:Let'ssaythethedendrogramontheleftwascreatedbydoingsomething
likeY=sch.linkage(D,method='average')#Disadistancematrixcutoff=0.5*max(Y[:,2])Z=sch.dendrogram(Y,...
66.IsthereabetterwaytohierarchicallyclusterinR?
Iwouldliketodohierarchicalclusteringbyrowandthenbycolumn.Icameupwiththistotalhackofasolution:#!/path/to/my/Rscript
vanillaargscommandArgs(TRUE)mtxf.inargs[1]clusterMethodargs[2]mtxf.outargs[3]mtxread.table(mtxf.in,...
67.Classifyingaclassifier
I'veimplementedaclassifierwhichEachiterationreceivesaparameterobjecttoclassify,someobjectsshareaclassifiable"property"likea

colorname.Classificationparameterscouldchange,sotheyareparametrizedtooandpassedtothisclassifiera...
68.Classifyingaclassifier
I'veimplementedaclassifierwhichEachiterationreceivesaparameterobjecttoclassify,someobjectsshareaclassifiable"property"likea
colorname.Classificationparameterscouldchange,sotheyareparametrizedtooandpassedtothisclassifiera...
69.WhatisthedifferencebetweenaConfusionMatrixandContingencyTable?
I'mwrittingapieceofcodetoevaluatemyClusteringAlgorithmandIfindthateverykindofevaluationmethodneedsthebasicdatafroma
m*nmatrixlikeA={aij}whereaijisthenumberofdatapointsthataremembersofclassciandelementsofclus...
70.ClustersovertimeinR
IhaveaseriesofdatathatI'mgoingtouseclusteringon,andIwanttoseehowthisdataclustersovertime.Soessentiallyeveryonestartsina
singlegroup,astheyhavedonenothing,butovertimeastheydodifferentthingstheywillbeputintod...
71.ClustersovertimeinR
IhaveaseriesofdatathatI'mgoingtouseclusteringon,andIwanttoseehowthisdataclustersovertime.Soessentiallyeveryonestartsina
singlegroup,astheyhavedonenothing,butovertimeastheydodifferentthingstheywillbeputintod...
72.ClarificationaboutMatlabLaplaceEquation
IneedhelpunderstandingthecodeandhowthetemperatureTNiscomputed/stored.Specifically,Idon'tunderstandthedoubleloopbeginning
withwhilek=imax.Here'stheMatlabprogramtosolve2DLaplaceequationexplicitly:function[x,y,T]=LaplaceE...
73.Rearrangingavectorinmatlab
I'mwritingacodeforadaptivefiniteelementmethodin1d.Ihaveanintervalletsay[0,1]andinfirstiterationIhaveamesh,x=0:.25:1andin
seconditerationIwouldliketodividethesecondandlastsegmentin3and5segments.Sotheupdatedvec...
74.HowtouseinverseFFTonamplitudefrequencyresponse?
IamtryingtocreateanapplicationforcalculatingcoefficientsforagraphicequalizerFIRfilter.IamdoingsomeprototypinginMatlabbutI
havesomeproblems.IhavestartedwiththefollowingMatlabcode:%binampsvectorholds2^13=8192binsof...
75.Isthereanyfunctionoppositetobwmorph(image,'skel')inMATLABorC,C++code?
Iwanttocreateanimageofanobjectfromitsmorphologicalskeleton.IsthereanyfunctioninMATLABorC,C++code?Thanksinadvance.
Originalimage,anditsskeleton(obtainedusingbwmorph(image,'skel',Inf)):...
76.Wordsearchwithintextstofindtextthatcontainsmostmatchedvariant
Iwanttofindawaytofindmostsuitablerowfromtablewhichcontainsawordthatismostsimilartothewordi'mentering.anyidea?(I'm
usingOCRthatfindswordsnotexactlythesamesometimesreadsword'specific'as'spccific')...
77.FuzzyMatchingNumbers
I'vebeenworkingwithDoubleMetaphoneandCaverphone2forStringcomparisonsandtheyworkgoodonthingslikenames,addresses,etc
(Caverphone2isworkingbestforme).However,theyproducewaytoomanyfalsepositiveswhenyougettonumericvalues,...
78.Predicateorsomeotherterm?
Justoutofcuriosity:ifIhaveaclassoperator(orfunctionorthelike)thatacceptsseveralarguments(normally1or2)andreturns1of3
values(insteadofbooleantrueorfalse)shoulditstillbecalledapredicate?Oraspecialcaseoffuzzylog...
79.Fuzzyindexondataset
I'mfacingaproblemwhereIneedtoprovideasearchfunctionalitywhereausercansupply"asmuchinformationashe/sheknows".This
datasetshouldthenbematchedagainstdifferentlookuptablestodetermineifIreliablycanassociateitagainstoneof...
80.SolrNet:HowcanIperformFuzzysearchinSolrNet?
Iamsearchinga"text"fieldinsolrandIlookingforawaytomatch(fore.g.)"anamal"with"animal".Myschemaforthe"text"fieldlooks
likethefollowing:filterclass="solr.StopFilterFactory"ignoreCase="true"words="stopwords.txt"enablePosition...
81.FuzzyTextMatchingC#
I'mwritingadesktopUI(.NetWinForms)toassistaphotographercleanuphisimagemetadata.Thereisalistof66k+phrases.Cananyone
suggestagoodopensource/free.NETcomponentIcanusethatemployssomesortofalgorithmtoidentifypotential...
82.Whymx.textshowingfuzzytext?
mx:HBoxwidth="100%"height="100%"textAlign="left"verticalAlign="top"paddingTop="0"mx:Texttext="{text}"height="100%"
width="100%"fontSize="11"color="{color}"paddingTop="20"//mx:HBoxIhavethisHBoxinsideaTitleWindow.I'mnotsurewhythe...
83.Findaseriesofdatausingnonexactmeasurements(fuzzylogic)
Thisisamorecomplexfollowupquestionto:EfficientwaytolookupsequentialvaluesEachProductcanhavemanySegmentrows
(thousands).Eachsegmenthaspositioncolumnthatstartsat1foreachproduct(1,2,3,4,5,etc.)andavaluecolumnthat...
84.ExtractingdatefromastringinPHP
HowcanIextractthedatefromanarbitrarystringsuchas"JoeSoapwasbornon12February1981"?Pythonhasawonderfulfuzzyparsing
functionalityprovidedbypythondateutilasdescribedinthisquestion.I'mlookingforalibrarythatprovidesthe...
85.Afloatsubclassthatcanbeevaluatedtofalse(fuzzylogic)inRuby
Ineedaclassthatcanrepresentprobabilities.Itcanberepresentedlikeafloatbetween0and1,andanythingbelow0.5shouldevaluateto
false.(oritcanbebetween1and1,anythingnegativeisfalse)p=A.probability()putsp#willoutput0.3i...
86.ClassificationofreviewfromcustomersintoGood,BadandNeutral
IhaveatypicalAIProblemtosolve.Customersgonnasubmitcommentsaboutaproduct.Ihavetobeabletocreateaprogramthatclassify
thesecommentaseithergood,badorneutral.Surely,NeuralNetworkgonnaplayagreatroleinit.Also,Ithinkfuz...
87.approximatesearchinadatabase
Ihavealargedatabasewithalistofinstitutions(universities,hospitals,etc).Thenamesofinstitutionscomefromdifferentsourcesandcanbe
spelleddifferentlyforthesameinstitution.Theycanbemisspelled,forexample,orwordscanbeshorten...
88.HowtocreatesimplefuzzysearchwithPostgresqlonly?
IhavealittleproblemwithsearchfunctionalityonmyRoRbasedsite.IhavemanyProdutswithsomeCODEs.Thiscodecanbeanystring
like"AB123lHdfj".NowIuseILIKEoperatortofindproducts:Product.where("codeILIKE?","%"+params[:search]+...
89.returningfuzzymatchpercentageinsolrqueryresult
I'veimplementedsolr/lucenefuzzymatchformysystemanditsworkingperfectly.Ihaverequirementtodisplaypercentagefuzzymatchafter
querysendsresponseback.Asanexampleifmyindexdatais"rushikupadhyay"andifmyqueryis"rushikupadhya"~0....
90.WhycanIrunSSISFuzzyGroupingfromVisualStudiobutnotthedeployedpackage?
IhavewrittenanSSISpackagetocreateaFuzzyGrouping.IcanrunitfromVisualStudiotargetinganyofmyserversanditwillrunwithout
anyproblem.IfItrytorunthedtsxbyremotingtoanyofthoseservers,IgetthePRODUCTLEVELTOLOWerrorwhe...
91.AkkaClusterJavaAPIsample
Iamprettyinterestedintestingoutthe2.0SNAPSHOTAkkaclusterfeatures,butformypurposeswouldliketodothisinJava.Ihaveread
throughtheexamplehere:http://letitcrash.posterous.com/clusteredactorswithcloudyakkaButtheAPIseemstoh...
92.HowtosuppressspecificGendarmerulesatprojectorassemblylevel
Ineedtosuppressunwantedgendarmerulesforthewholeassemblyofmyprojectorevenforindividualprojects.Isthereanyoption
available?Thanksinadvance....
93.Toolforincrementalstaticanalysisofcode?
Arethereany,free,toolswhichallowincrementalstaticanalysisofcode(forSVNandpreferablyGit)?CurrentlyweareusingSonar(2.12I

think?)buttheproblemisthetimeitneedstoanalyseallthecodeinourprojectwhichis4060minutes.Andwe...
94.TheCodeAnalysisfriendlywaytodisposeofobjects
AspartofourVisualStudio2010(primarlyC#4.0)developmentstandards,wehaveCodeAnalysisturnedon.AsIamreviewingrecently
submittedcodeforanewproject,IamseeingatonofCA2000:Microsoft.Reliability:Inmethod'XYZ',object'ABC'is...
95.SuppressCA1062withfluentvalidation
Ihaveafluent,extensiblevalidationhelperlike:Assert.That(aParameter).IsNotNull()ItisextensiblebecausetheThatmethodisactually
generic(ThatT)andusesimplicittypingtoreturnagenericIAssertConditionTobject.IsNotNullisactuallyane...
96.RunCodeAnalysis=truenotworkingincommandprompt(MSBuild)
I'mtryingtogetmsbuildtooutputcodeanalysisinfolikeitdoesinVS.Ihaveaconfigurationformyprojectcalled"CodeAnalysis"inVSthat
issetuptoruncodeanalysisonbuild(withtheminimumruleset).AnywaythisisworkingfineinVS,butwh...
97.FinduncaughtexceptionsinC#code
I'mwonderingifthereisatooltofinduncaughtexceptionsinC#usingstaticcodeanalysis?BasicallyIwanttoselectamethodA()andwanta
listofallexceptionsthrownbymethodA()andallmethodscalledbymethodA().ItriedReSharper+AgentJohn...
98.HowtocreateaFxCop(CodeAnalysis)customrulesetbycombiningexistingrules
Pleaseletmeknow,howcanIdevelopaFxCop(CodeAnalysis)customrulesassemblybycombiningexistingrulessuchasthatcustomrules
assemblywillincluderulesfrom"MicrosoftBasicCorrectnessRules"and"MicrosoftSecurityRules"Ifyoucanprovi...
99.Trainingdataforsentimentanalysis
WherecanIgetacorpusofdocumentsthathavealreadybeenclassifiedaspositive/negativeforsentimentinthecorporatedomain?Iwanta
largecorpusofdocumentsthatprovidereviewsforcompanies,likereviewsofcompaniesprovidedbyanalystsandm...
100.Plottingagraphusingthevaluesgenerated
Ihavecreatedaqueuebufferandneedtogenerateaplotofthenumberofpacketsinthequeueovertime.Iamabeginnerandcannotfind
waystostorethenumberofpacketsinthebufferateachtimeafterexecutingthewhileloopandthereforewhenIr...

Copyright(c)2015questioninbox.com.Allrightsreserved.

You might also like