/// <summary> /// 模型训练 /// </summary> /// <param name="clusterCount">分类数目</param> /// <param name="transStep">转移步数</param> public void Train(int clusterCount, int transStep) { _clusterCount = clusterCount; _transStep = transStep; _fcmResult = _fcm.Run(_clusterCount); _obsIdx = _fcmResult.Idx; _mc.Train(_obsIdx, _transStep); }
private void ClusterTable(Section s, ClusterReport clustReport, byte[] image) { var t = s.AddTable().TableDefaults(); t.AddColumn(ContentWidth()); var hdrRow = t.AddRow(); hdrRow.Shading.Color = clustReport.initialOwner.PersonToColor(); hdrRow.Cells[0].AddParagraph().AddBold("Cluster"); ClusterTableLine(t, clustReport.clusterTitle, clustReport.clusterId, false, clustReport.initialOwner); foreach (var point in clustReport.points) { ArgPointTableLine(t, point, true); } AddLinkOrClusterImg(s, image); }
private void ClusterTable(Section s, ClusterReport clustReport, byte[] image) { var t = s.AddTable().TableDefaults(); t.AddColumn(ContentWidth()); var hdrRow = t.AddRow(); hdrRow.Shading.Color = clustReport.initialOwner.PersonToColor(); hdrRow.Cells[0].AddParagraph().AddBold("Cluster"); ClusterTableLine(t, clustReport.clusterTitle, clustReport.clusterId, false, clustReport.initialOwner); foreach (var point in clustReport.points) ArgPointTableLine(t, point, true); AddLinkOrClusterImg(s, image); }