mahout kmeans做文章聚类生成的结果只有两类

这个是执行命令指定了k是20

mahout kmeans -i /hadoop/test/mahot_test/ou/tfidf-vectors -c /hadoop/test/mahot_test/ou/reuters-kmeans-clusters -o /hadoop/test/mahot_test/kou -k 20 -dm org.apache.mahout.common.distance.CosineDistanceMeasure -x 10 -ow --clustering

但是查看输出目录中clusteredPoints下的文件结果只有两个类
这个是输出结果
Input Path: hdfs://usser/hadoop/test/mahot_test/kou/clusteredPoints/part-m-00000
Key class: class org.apache.hadoop.io.IntWritable Value Class: class org.apache.mahout.clustering.classify.WeightedPropertyVectorWritable
Key: 0: Value: wt: 1.0 distance: 0.0 vec: [{"0":5.0},{"1":3.0},{"2":2.828},{"3":4.899},{"4":3.162},{"5":1.414},{"6":6.633},{"7":3.873},{"8":3.606},{"9":1.414},{"10":1.414},{"11":2.236},{"12":1.732},{"13":1.414},{"14":1.414},{"15":1.414},{"16":1.414},{"17":1.732},{"18":1.414},{"19":1.732},{"20":4.69},{"21":1.414},{"22":1.414},{"23":2.236},{"24":2.236},{"25":2.236},{"26":1.414},{"27":1.414},{"28":1.414},{"29":2.0},{"30":1.414},{"31":1.414},{"32":1.414},{"33":1.414},{"34":1.414},{"35":1.414},{"36":1.414},{"37":1.414},{"38":1.414},{"39":2.0},{"40":1.414},{"41":1.414},{"42":1.414},{"43":1.414},{"44":1.414},{"45":1.414},{"46":2.0},{"47":1.414},{"48":2.236},{"49":2.828},{"50":7.483},{"51":12.61},{"52":1.414},{"53":1.414},{"54":1.414},{"55":2.236},{"56":2.0},{"57":2.0},{"58":18.055},{"59":18.193},{"60":23.812},{"61":18.083},{"62":2.0},{"63":9.695},{"64":3.0},{"65":3.0},{"66":4.69},{"67":1.414},{"68":1.414},{"69":3.162},{"70":1.414},{"71":5.657},{"72":1.732},{"73":1.414},{"74":5.657},{"75":1.414},{"76":2.236},{"77":3.317},{"78":1.414},{"79":1.414},{"80":2.0},{"81":15.067},{"82":1.414},{"83":2.449},{"84":9.849},{"85":2.236},{"86":6.0},{"87":3.317},{"88":1.414},{"89":2.0},{"90":2.646},{"91":9.798},{"92":8.888},{"93":5.657},{"94":11.832},{"95":7.071},{"96":5.745},{"97":2.828},{"98":1.414},{"99":1.414},{"100":5.745},{"101":9.798},{"102":6.325},{"103":2.0},{"104":1.414},{"105":17.607},{"106":4.69},{"107":3.162},{"108":2.0},{"109":2.0},{"110":1.414},{"111":2.236},{"112":12.61},{"113":2.0},{"114":7.211},{"115":17.407},{"116":6.325},{"117":6.481},{"118":1.414},{"119":1.414},{"120":1.414},{"121":9.381},{"122":13.856},{"123":11.402},{"124":2.236},{"125":1.414},{"126":6.325},{"127":8.246},{"128":1.414},{"129":3.162},{"130":2.236},{"131":1.414},{"132":1.414},{"134":8.246},{"135":2.449},{"136":1.732},{"137":2.236},{"138":1.414},{"139":1.414},{"140":1.414},{"141":1.414},{"142":1.414},{"143":5.657},{"144":2.0},{"145":1.732},{"146":2.0},{"147":1.414},{"148":7.681},{"149":2.236},{"150":6.0},{"151":1.414},{"152":11.705},{"153":4.472},{"154":1.414},{"155":2.0},{"156":1.414},{"157":3.162},{"158":4.243},{"159":4.69},{"160":10.63},{"161":1.414},{"162":1.414},{"163":2.236},{"164":2.236},{"165":2.236},{"166":1.414},{"167":2.236},{"168":3.162},{"169":1.414},{"170":2.646},{"171":2.449},{"172":2.449},{"173":2.0},{"174":2.0},{"175":1.732},{"176":2.236},{"177":1.414},{"178":2.828},{"179":5.292},{"180":1.414},{"181":2.646},{"182":1.732},{"183":2.646},{"184":1.732},{"185":1.414},{"186":2.0},{"187":10.863},{"188":1.414},{"189":2.0},{"190":2.0},{"191":1.414},{"192":1.414},{"193":1.414},{"194":1.414},{"195":12.083},{"196":2.828},{"197":21.977},{"198":2.0},{"199":3.464},{"200":1.414},{"201":2.0},{"202":4.0},{"203":2.236},{"204":2.828},{"205":15.524},{"206":1.414},{"207":2.828},{"208":4.243},{"209":2.0},{"210":6.782},{"211":6.164},{"212":1.414},{"213":5.0},{"214":1.414},{"215":10.149},{"216":5.099},{"217":10.817},{"218":3.464},{"219":1.732},{"220":1.414},{"222":1.414},{"223":1.414},{"224":2.449},{"225":1.414},{"226":2.828},{"227":6.633},{"228":1.414},{"229":1.414},{"230":1.414},{"231":1.414},{"232":2.449},{"233":1.414},{"234":2.828},{"235":1.414},{"236":1.732},{"237":1.414},{"238":8.062},{"239":2.449},{"240":2.449},{"241":2.0},{"242":1.414},{"243":1.414},{"244":2.449},{"245":2.236},{"246":2.0},{"247":2.236},{"248":11.446},{"249":2.236},{"250":2.236},{"251":2.449},{"252":1.732},{"253":1.732},{"254":2.236},{"255":20.149},{"256":4.472},{"257":10.247},{"258":4.0},{"259":1.414},{"260":7.483},{"261":1.414},{"262":2.0},{"263":7.141},{"264":1.732},{"265":1.414},{"266":2.449},{"267":3.162},{"268":2.828},{"269":1.414},{"270":1.414},{"271":1.414},{"272":1.414},{"273":1.414},{"274":1.414},{"275":1.414},{"276":1.414},{"277":1.414},{"278":1.414},{"279":1.414},{"280":1.414},{"281":1.414},{"282":1.414},{"283":1.414},{"284":1.414},{"285":1.414},{"286":1.414},{"287":1.414},{"288":1.414},{"289":1.414},{"290":1.414},{"291":1.414},{"292":1.414},{"293":1.414},{"294":1.414},{"295":1.414},{"296":1.414},{"297":1.414},{"298":1.414},{"299":1.414},{"300":1.414},{"301":1.414},{"302":1.414},{"303":1.414},{"304":1.414},{"305":1.414},{"306":1.414},{"307":1.414},{"308":1.414},{"309":1.414},{"310":1.414},{"311":1.414},{"312":1.414},{"313":1.414},{"314":1.414},{"315":1.414},{"316":1.414},{"317":1.414},{"318":3.162},{"319":2.236},{"321":2.449},{"322":1.414},{"323":7.28},{"324":1.414},{"325":4.899},{"326":1.414},{"327":13.601},{"328":13.601},{"329":4.899},{"330":4.899},{"331":1.414},{"332":1.414},{"333":4.123},{"334":1.414},{"335":1.414},{"336":3.464},{"337":2.0},{"338":3.464},{"339":2.646},{"340":1.414},{"341":1.732},{"342":1.732},{"343":1.414},{"344":1.414},{"345":4.899},{"346":20.273},{"347":20.273},{"348":2.449},{"349":2.449},{"350":4.899},{"351":3.464},{"352":4.243},{"353":2.449},{"354":1.414},{"355":1.414},{"356":2.0},{"357":1.414},{"358":4.0},{"359":2.0},{"360":4.0},{"361":2.0},{"362":1.414},{"363":4.123},{"364":4.243},{"365":1.414},{"366":2.449},{"367":2.828},{"368":2.828},{"369":1.732},{"370":1.732},{"371":2.0},{"372":1.732},{"373":2.0},{"374":1.414},{"375":1.414},{"376":2.0},{"377":1.414},{"378":1.414},{"379":1.414},{"380":1.414},{"381":1.414},{"382":1.414},{"383":1.414},{"384":1.414},{"385":1.414},{"386":1.414},{"387":1.414},{"388":1.414},{"389":1.414},{"390":1.414},{"391":1.414},{"392":1.414},{"393":1.414},{"394":1.414},{"395":1.414},{"396":1.414},{"397":1.414},{"398":1.414},{"399":1.414},{"400":1.732},{"401":5.745},{"402":3.0},{"403":2.828},{"404":2.449},{"405":2.449},{"406":4.472},{"407":4.472},{"408":3.0},{"409":15.264},{"410":1.414},{"411":1.414},{"412":1.414},{"413":5.657},{"414":2.828},{"415":4.69},{"416":5.831},{"417":1.732},{"418":2.828},{"419":1.414},{"420":19.494},{"421":3.0},{"422":14.071},{"423":3.742},{"424":2.0},{"425":18.193},{"426":9.695},{"427":2.449},{"428":3.606},{"429":4.472},{"430":9.695},{"431":3.606},{"432":18.055},{"433":7.483},{"434":2.236},{"435":2.0},{"436":2.236},{"437":2.0},{"438":4.69},{"439":5.657},{"440":18.083},{"441":3.606},{"442":18.193},{"443":2.828},{"444":3.0},{"445":1.414},{"446":1.414},{"447":1.414},{"448":14.071},{"449":2.0},{"450":13.928},{"451":18.466},{"452":1.414},{"453":3.606},{"454":1.414},{"455":6.164},{"456":1.414},{"457":1.414},{"458":2.0},{"459":1.414},{"460":1.732},{"461":4.123},{"462":1.414},{"463":1.732},{"464":6.164},{"465":3.742},{"466":1.414},{"467":4.243},{"468":1.732},{"469":2.0},{"470":9.592},{"471":14.799},{"472":4.0},{"473":5.099},{"474":7.746},{"475":4.472},{"476":1.414},{"477":3.317},{"478":3.0},{"479":4.583},{"480":3.464},{"481":3.0},{"482":3.742},{"483":3.742},{"484":3.742},{"485":2.828},{"486":2.236},{"487":5.745},{"488":2.449},{"489":1.414},{"490":1.414},{"491":1.414},{"492":1.414},{"493":2.449},{"494":3.0},{"495":4.0},{"496":1.414},{"497":1.414},{"498":1.414},{"499":5.831},{"500":1.414},{"501":1.414},{"502":10.488},{"503":2.449},{"504":2.449},{"505":2.449},{"506":2.646},{"507":10.44},{"508":2.449},{"509":11.314},{"510":3.162},{"511":10.954},{"512":12.207},{"513":1.414},{"514":2.828},{"515":3.464},{"516":2.449},{"517":4.899},{"518":1.414},{"519":1.414},{"520":1.732},{"521":8.832},{"522":1.732},{"523":1.414},{"524":2.646},{"525":5.0},{"526":3.317},{"527":3.464},{"528":1.414},{"529":1.732},{"530":2.236},{"531":7.348},{"532":3.317},{"533":1.414},{"534":1.414},{"535":2.0},{"536":1.732},{"537":1.414},{"538":1.414},{"539":4.472},{"540":13.266},{"541":2.646},{"542":5.292},{"543":1.732},{"544":2.0},{"545":10.63},{"546":3.606},{"547":1.414},{"548":2.449},{"549":1.414},{"550":2.236},{"551":2.0},{"552":4.243},{"553":5.745},{"554":1.732},{"555":3.873},{"556":2.236},{"557":2.449},{"558":2.828},{"559":2.0},{"560":4.0},{"561":4.0},{"562":2.0},{"563":3.464},{"564":2.646},{"565":2.646},{"566":1.414},{"567":3.0},{"568":6.325},{"569":24.98},{"570":2.0},{"571":7.416},{"572":9.899},{"573":4.472},{"574":3.162},{"575":2.236},{"576":1.414},{"577":1.414},{"578":1.414},{"579":1.414},{"580":1.414},{"581":1.414},{"582":1.414},{"583":1.414},{"584":2.646},{"585":2.0},{"586":2.0},{"587":1.414},{"588":1.414},{"589":7.55},{"590":1.414},{"591":1.414},{"592":2.646},{"593":2.646},{"594":2.828},{"595":2.646},{"596":4.899},{"597":1.414},{"598":1.414},{"599":1.414},{"600":2.0},{"601":1.414},{"602":2.0},{"603":1.414},{"604":1.414},{"605":1.414},{"606":1.414},{"607":1.414},{"608":1.414},{"609":1.414},{"610":3.0},{"611":2.0},{"612":1.414},{"613":2.449},{"614":1.414},{"615":1.414},{"616":2.828},{"617":2.0},{"618":1.414},{"619":7.141},{"620":2.0},{"621":1.414},{"622":1.414},{"623":4.796},{"624":1.414},{"625":1.414},{"626":1.414},{"627":1.414},{"628":1.414},{"629":1.414},{"630":1.414},{"631":1.414},{"632":1.414},{"633":1.414},{"634":1.414},{"635":1.414},{"636":1.414},{"637":2.646},{"638":2.0},{"639":11.533},{"640":3.162},{"641":3.162},{"642":6.481},{"643":3.0},{"644":4.243},{"645":8.832},{"646":3.317},{"647":6.164},{"648":4.359},{"649":2.449},{"650":2.0},{"651":25.788},{"652":20.664},{"653":8.185},{"654":2.236},{"655":1.414},{"656":2.0},{"657":15.264},{"658":1.414},{"659":3.464},{"660":1.414},{"661":2.236},{"662":4.359},{"663":1.732},{"664":9.95},{"665":2.828},{"666":1.414},{"667":1.732},{"668":3.464},{"669":1.414},{"670":2.828},{"671":1.414},{"672":1.414},{"673":1.414},{"674":1.414},{"675":1.414},{"676":2.0},{"677":1.414},{"678":1.414},{"679":2.828},{"680":1.414},{"681":8.124},{"682":18.466},{"683":2.236},{"684":1.414},{"685":2.236},{"686":1.414},{"687":2.449},{"688":2.236},{"689":4.243},{"690":8.775},{"691":20.833},{"692":1.414},{"693":1.414},{"694":1.414},{"695":2.0},{"696":1.414},{"697":1.414},{"698":2.449},{"699":1.414},{"700":4.472},{"701":2.0},{"702":5.385},{"703":2.236},{"704":1.732},{"705":2.236},{"706":20.857},{"707":21.378},{"708":1.732},{"709":2.236},{"710":2.0},{"711":18.974},{"712":10.296},{"713":6.782},{"714":14.9},{"715":4.796},{"716":9.695},{"717":3.0},{"718":3.162},{"719":12.689},{"720":1.414},{"721":7.681},{"722":2.646},{"723":1.414},{"724":10.0},{"725":16.31},{"726":4.0},{"727":1.414},{"728":2.449},{"729":18.412},{"730":5.0},{"731":1.414},{"732":1.414},{"733":1.414},{"734":2.828},{"735":4.796},{"736":5.657},{"737":5.657},{"738":4.899},{"739":6.164},{"740":3.464},{"741":3.0},{"742":13.82},{"743":2.828},{"744":1.414},{"745":1.414},{"746":1.414},{"747":1.414},{"748":1.414},{"749":1.414},{"750":1.414},{"751":1.414},{"752":1.414},{"753":1.414},{"754":1.414},{"755":1.414},{"756":1.414},{"757":1.414},{"758":1.414},{"759":1.414},{"760":1.414},{"761":1.414},{"762":1.414},{"763":1.414},{"764":1.414},{"765":1.414},{"766":1.414},{"767":1.414},{"768":1.414},{"769":1.414},{"770":1.414},{"771":1.414},{"772":1.414},{"773":1.414},{"774":1.414},{"775":1.414},{"776":1.414},{"777":1.414},{"778":1.414},{"779":1.414},{"780":1.414},{"781":1.414},{"782":1.414},{"783":1.414},{"784":1.414},{"785":1.414},{"786":1.414},{"787":1.414},{"788":1.414},{"789":1.414},{"790":1.414},{"791":1.414},{"792":1.414},{"793":1.414},{"794":1.414},{"795":1.414},{"796":1.414},{"797":1.414},{"798":1.414},{"799":1.414},{"800":1.414},{"801":1.414},{"802":1.414},{"803":1.414},{"804":1.414},{"805":1.414},{"806":1.414},{"807":1.414},{"808":1.414},{"809":1.414},{"810":1.414},{"811":1.414},{"812":1.414},{"813":1.414},{"814":1.414},{"815":1.414},{"816":1.414},{"817":1.414},{"818":1.414},{"819":1.414},{"820":1.414},{"821":1.414},{"822":1.414},{"823":1.414},{"824":1.414},{"825":1.414},{"826":1.414},{"827":1.414},{"828":1.414},{"829":1.414},{"830":4.243},{"831":9.747},{"832":3.162},{"833":10.344},{"834":1.414},{"835":2.828},{"836":9.274},{"837":2.646},{"838":13.565},{"839":1.732},{"840":4.899},{"841":1.732},{"842":4.583},{"843":3.317},{"844":1.414},{"845":1.414},{"846":1.414},{"847":2.449},{"848":2.0},{"849":2.449},{"850":2.646},{"851":2.449},{"852":2.0},{"853":2.236},{"854":2.236},{"855":1.732},{"856":4.899},{"857":1.732},{"858":13.601},{"859":4.899},{"860":20.273},{"861":2.828},{"862":2.828},{"863":1.732},{"864":3.0},{"865":8.246},{"866":2.828},{"867":2.828},{"868":1.414},{"869":1.414},{"870":11.314},{"871":12.083},{"872":4.359},{"873":1.414},{"874":1.414},{"875":1.414},{"876":1.414},{"877":1.414},{"878":1.414},{"879":1.414},{"880":2.0},{"881":2.0},{"882":2.0},{"883":2.236},{"884":2.236},{"885":4.243},{"886":20.761},{"887":1.414},{"888":3.742},{"889":2.236},{"890":7.141},{"891":5.568},{"892":8.718},{"893":1.414},{"894":2.236},{"895":1.414},{"896":1.414},{"897":1.414},{"898":1.414},{"899":1.414},{"900":1.414},{"901":1.414},{"902":1.414},{"903":1.414},{"904":1.414},{"905":1.414},{"906":1.414},{"907":1.414},{"908":1.414},{"909":2.449},{"910":2.0},{"911":17.263},{"912":1.732},{"913":1.414},{"914":3.162},{"915":1.732},{"916":3.317},{"917":1.414},{"918":1.414},{"919":1.414},{"920":1.414},{"921":4.472},{"922":2.449},{"923":1.414},{"924":8.307},{"925":3.0},{"926":15.811},{"927":17.664},{"928":1.414},{"929":4.583},{"930":1.414},{"931":1.414},{"932":1.414},{"933":1.414},{"934":1.414},{"935":4.69},{"936":13.528},{"937":2.828},{"938":3.742},{"939":7.483},{"940":5.657},{"941":10.724},{"942":8.544},{"943":7.071},{"944":1.414},{"945":3.317},{"946":8.062},{"947":17.72},{"948":3.317},{"949":1.414},{"950":3.162},{"951":2.828},{"952":8.485},{"953":2.828},{"954":4.899},{"955":2.236},{"956":1.732},{"957":3.742},{"958":9.22},{"959":2.0},{"960":2.449},{"961":4.243},{"962":11.136},{"963":2.828},{"964":3.162},{"965":4.0},{"966":1.414},{"967":5.657},{"968":1.414},{"969":10.677},{"970":4.899},{"971":1.414},{"972":1.732},{"973":2.828},{"974":1.732},{"975":23.958},{"976":1.414},{"977":6.0},{"978":1.732},{"979":5.745},{"980":9.695},{"981":14.526},{"982":5.0},{"983":2.236},{"984":2.236},{"985":1.414},{"986":8.718},{"987":2.828},{"988":2.828},{"989":4.0},{"990":2.0},{"991":5.657},{"992":4.0},{"993":2.0},{"994":16.733},{"995":4.243},{"996":1.414},{"997":1.732},{"998":16.971},{"999":9.381},{"1000":7.416},{"1001":7.55},{"1002":1.414},{"1003":28.862},{"1004":22.804},{"1005":1.414},{"1006":2.236},{"1007":4.472},{"1008":2.646},{"1009":1.732},{"1010":3.464},{"1011":1.414},{"1012":2.646},{"1013":2.236},{"1014":5.477},{"1015":4.472},{"1016":4.472},{"1017":4.472},{"1018":4.69},{"1019":3.873},{"1020":2.236},{"1021":1.414},{"1022":2.236},{"1024":3.606},{"1025":1.414},{"1026":1.414},{"1027":1.414},{"1028":1.414},{"1029":5.657},{"1030":1.414},{"1031":1.414},{"1032":1.414},{"1033":10.488},{"1034":2.236},{"1036":2.236},{"1037":1.414},{"1038":1.414},{"1040":2.236},{"1041":2.236},{"1042":1.414},{"1043":2.236},{"1044":1.414},{"1045":1.414},{"1046":1.414},{"1047":2.449}]
Key: 1: Value: wt: 1.0 distance: 1.1102230246251565E-16 vec: [{"1023":1.414},{"1035":1.414},{"1039":1.414}]
Count: 2

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐