TWI427546B - A method for generating an initialization scheme of self-organizing map - Google Patents

A method for generating an initialization scheme of self-organizing map Download PDF

Info

Publication number
TWI427546B
TWI427546B TW99134043A TW99134043A TWI427546B TW I427546 B TWI427546 B TW I427546B TW 99134043 A TW99134043 A TW 99134043A TW 99134043 A TW99134043 A TW 99134043A TW I427546 B TWI427546 B TW I427546B
Authority
TW
Taiwan
Prior art keywords
initial
points
point
center
layer
Prior art date
Application number
TW99134043A
Other languages
Chinese (zh)
Other versions
TW201216177A (en
Inventor
Cheng Fa Tsai
Kuei Sheng Lee
Original Assignee
Univ Nat Pingtung Sci & Tech
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Univ Nat Pingtung Sci & Tech filed Critical Univ Nat Pingtung Sci & Tech
Priority to TW99134043A priority Critical patent/TWI427546B/en
Publication of TW201216177A publication Critical patent/TW201216177A/en
Application granted granted Critical
Publication of TWI427546B publication Critical patent/TWI427546B/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Description

自組織映射圖網路之初始架構產生方法Method for generating initial architecture of self-organizing map network

本發明係關於一種自組織映射圖網路之初始架構產生方法,特別是基於自組織映射圖之自組織映射圖網路之初始架構產生方法。The present invention relates to a method for generating an initial architecture of a self-organizing map network, and more particularly to an initial architecture generation method for a self-organizing map network based on a self-organizing map.

目前,類神經網路已被廣泛應用於處理各種需要大量資料運算的應用上,而自組織映射圖(Self-Organizing Map,SOM)網路便是類神經網路的一種。At present, neural networks have been widely used to deal with various applications that require a large amount of data operations, and a Self-Organizing Map (SOM) network is a kind of neural network.

一般自組織映射圖網路係先提供數個資料點,再透過一初始架構產生方法,定義出由數個初始點所構成之初始架構後,再以該自組織映射圖之初始架構進行運算至收斂,以獲得最終之自組織映射圖網路。Generally, the self-organizing map network first provides a plurality of data points, and then an initial architecture generation method is used to define an initial structure composed of a plurality of initial points, and then the initial architecture of the self-organizing map is used to perform operations. Convergence to get the final self-organizing map network.

習用自組織映射圖網路之初始架構產生方法,通常係以隨機方式,由該些資料點中選出數個作為初始點,並連結該些初始點,以構成該自組織映射圖之初始架構。The initial architecture generation method of the self-organizing map network is generally selected in a random manner, and several of the data points are selected as initial points, and the initial points are connected to form an initial structure of the self-organizing map.

然而,由於前述係以隨機方式選取資料點作為初始點以形成初始架構,因此將會造成每次執行結果皆不相同,影響執行結果之正確性。However, since the foregoing method selects the data points as the initial points in a random manner to form the initial structure, each execution result is different, which affects the correctness of the execution result.

請參照第1圖所示,另一習用自組織映射圖網路之初始架構產生方法,係以格子狀的初始化方法(Grid Initialization Scheme)產生初始架構。以二維平面空間為例,數個資料點91散佈於二維平面空間,先將該些資料點91所散佈之空間以數個網格92進行劃分,使得該些資料點係完全分佈於該些網格92內。以第1圖為例,係選擇以方形之網格92劃分該二維空間;再以該些網格92之周邊之四角緣的位置作為初始點93,如此,由該些初始點93便可共同構成自組織映射圖之初始架構。Referring to FIG. 1 , another method for generating an initial architecture of a self-organizing map network is to generate an initial architecture by using a grid initialization scheme (Grid Initialization Scheme). Taking a two-dimensional plane space as an example, a plurality of data points 91 are scattered in a two-dimensional plane space, and the space scattered by the data points 91 is first divided into a plurality of grids 92, so that the data points are completely distributed in the plane. Within the grid 92. Taking FIG. 1 as an example, the two-dimensional space is selected by a square grid 92; and the positions of the four corners of the periphery of the grids 92 are used as initial points 93, so that the initial points 93 can be Together form the initial architecture of the self-organizing map.

雖然此法所獲得之初始架構可完全涵蓋該些資料點91。然而,如第1圖所示,若該些資料點91之分佈不均勻,則很可能有相當多的初始點93配置於沒有資料點91分佈的位置上,而造成執行效率低落之缺點。Although the initial structure obtained by this law can fully cover these data points 91. However, as shown in Fig. 1, if the distribution of the data points 91 is not uniform, it is likely that a considerable number of initial points 93 are disposed at positions where the data points 91 are not distributed, resulting in a disadvantage of low execution efficiency.

因此,請參照第2圖所示,另一習用自組織映射圖網路之初始架構產生方法係針對前述之方法進行改良。其主要是由該些資料點91中,選出位於最邊緣的四個資料點91’作為初始架構最角落之四個初始點93’,再以該四個初始點93’所圍繞之範圍進行網格式的劃分,以形成數個網格92,並以該些網格92之各角緣位置作為初始點93之位置,便可由該些初始點93及位於角落之初始點93’共同構成該自組織映射圖之初始架構。藉此,可提高初始點93分佈之正確性。Therefore, referring to FIG. 2, another initial self-organizing map network initial architecture generation method is improved for the foregoing method. It is mainly that among the data points 91, the four data points 91' located at the outermost edge are selected as the four initial points 93' of the most corner of the initial architecture, and then the network surrounded by the four initial points 93' is used. The division of the format to form a plurality of grids 92, and the positions of the corner edges of the grids 92 as the initial point 93, can be formed by the initial points 93 and the initial points 93' located at the corners. The initial architecture of the organization map. Thereby, the correctness of the distribution of the initial point 93 can be improved.

然而,由於此法係以該四個初始點93’作為網格分佈之四個角落,因此,如第2圖所示,部分位於邊緣之資料點91並未被該些網格92所覆蓋,因此資料點91之覆蓋率較低,亦有可能影響到所產生之初始架構的正確性。However, since the four initial points 93' are used as the four corners of the grid distribution, as shown in FIG. 2, some of the edge-located data points 91 are not covered by the grids 92. Therefore, the coverage of data point 91 is low, which may affect the correctness of the initial architecture generated.

基於上述原因,有必要進一步改良上述習用自組織映射圖網路之初始架構產生方法。For the above reasons, it is necessary to further improve the initial architecture generation method of the above-mentioned conventional self-organizing map network.

本發明之主要目的係提供一種自組織映射圖網路之初始架構產生方法,以使所產生的初始架構更接近資料點之分佈。The primary object of the present invention is to provide an initial architecture generation method for a self-organizing map network to bring the resulting initial architecture closer to the distribution of data points.

根據本發明之自組織映射圖網路之初始架構產生方法,其包含:步驟1,設定切割參數;步驟2,依據該切割參數對一包含有數個資料點之資料集進行切割,以形成數個網格,且該些資料點係分佈於該些網格內;步驟3,根據該些網格內之資料點數量對該些網格進行排序;步驟4,根據該網格之排序,於含有資料點之網格內依序選取一個資料點作為一初始點;步驟5,重複進行該步驟4,取至初始點之數量等於網格之總數量為止;步驟6,將各二相鄰之網格之中心點相連結,以形成一次網格區域;步驟7,以相距最遠之二個初始點分別作為第一初始點與第二初始點,且於該次網格區域中以位於對角角落的二個中心點分別作為第一中心點及第二中心點,以分別對應該第一初始點與第二初始點;步驟8,以距離該第一初始點與第二初始點之距離總和最遠之初始點作為基準初始點,並以該次網格區域中位於另一角落之中心點作為對應該基準初始點之基準中心點;步驟9,以該第一中心點作為起始中心點,沿著該次網格區域之邊界分別向該第二中心點移動一格距離所獲得之二個中心點,並對該二中心點進行連線獲得一基準線,以該基準線所經過之中心點作為層中心點;步驟10,以該第一初始點作為中點,依序選擇最靠近該中點之數個初始點作為層初始點,且該層初始點之數量等於該層中心點之數量;步驟11,根據該些層初始點與該基準初始點之距離對該些層初始點進行排序,並根據該些層中心點與該基準中心點之距離對該些層中心點進行排序,依據該排序使該些層中心點分別對應該些層初始點;步驟12,以該二連線中心點作為該起始中心點,以該些層初始點之中心作為該中點,重複進行步驟9~11,直至所有初始點皆分別對應有一中心點;及步驟13,根據該些中心點之連接關係對該些初始點進行連接,以獲得自組織映射圖網路之初始架構。The initial architecture generating method of the self-organizing map network according to the present invention includes: step 1 setting a cutting parameter; and step 2, cutting a data set including a plurality of data points according to the cutting parameter to form a plurality of a grid, and the data points are distributed in the grids; in step 3, the grids are sorted according to the number of data points in the grids; and step 4, according to the sorting of the grids, Select a data point as an initial point in the grid of data points; in step 5, repeat step 4, and take the number of initial points equal to the total number of grids; step 6, each adjacent network The center points of the grid are connected to form a grid area; in step 7, the two initial points that are furthest apart are respectively used as the first initial point and the second initial point, and are located diagonally in the sub-grid area. The two center points of the corner respectively serve as a first center point and a second center point to respectively correspond to the first initial point and the second initial point; and in step 8, the sum of the distances from the first initial point and the second initial point The farthest initial point a reference initial point, and a center point located at another corner of the sub-grid area as a reference center point corresponding to the initial point of the reference; and step 9, the first center point is used as a starting center point, along the sub-network The boundary of the grid area is respectively moved to the second center point by two distance points obtained by a distance, and the two center points are connected to obtain a reference line, and the center point passing through the reference line is used as a layer center point. Step 10: using the first initial point as a midpoint, sequentially selecting a plurality of initial points closest to the midpoint as a layer initial point, and the number of initial points of the layer is equal to the number of center points of the layer; Sorting the initial points of the layers according to the distance between the initial points of the layers and the initial point of the reference, and sorting the center points of the layers according to the distance between the center points of the layers and the reference center point, according to the sorting The center points of the layers respectively correspond to the initial points of the layers; in step 12, the center point of the two lines is used as the starting center point, and the center of the initial points of the layers is used as the midpoint, and steps 9 to 11 are repeated until All initial points Corresponding to a center point respectively; and step 13, connecting the initial points according to the connection relationship of the center points to obtain an initial structure of the self-organizing map network.

為讓本發明之上述及其他目的、特徵及優點能更明顯易懂,下文特舉本發明之較佳實施例,並配合所附圖式,作詳細說明如下:請參照第3圖所示,本發明之網格式資料分群方法,係藉由一電腦系統連接至少一資料庫作為執行架構,該資料庫中係存有一資料集1,該資料集1係由數個資料點11所共同組成之群集。The above and other objects, features, and advantages of the present invention will become more apparent from the claims. The network format data grouping method of the present invention is to connect at least one database as an execution architecture by using a computer system, wherein the data library has a data set 1 which is composed of a plurality of data points 11 Cluster.

本發明之步驟1係設定切割參數。更詳言之,該切割參數係指欲切割網格尺寸的大小。舉例而言,該切割參數係指每一網格之邊長。Step 1 of the present invention sets the cutting parameters. More specifically, the cutting parameter refers to the size of the mesh to be cut. For example, the cutting parameter refers to the length of the side of each grid.

請參照第4圖所示,本發明之步驟2係依據該切割參數對一包含有數個資料點11之資料集1進行切割,以形成數個網格2,且該些資料點11係分佈於該些網格2內。更詳言之,係根據該切割參數對該些資料點11之分佈空間進行切割,而獲得數個網格2,使得該些資料點11係完全分佈於該些網格2內,如此,便可獲得對該些資料點較高之覆蓋率,進而提升執行結果之準確性。以第4圖為例,本實施例之資料點11係分佈於一二維平面空間內。本實施例希望完成後係以3×3的初始架構表示該些資料點11之分佈,因此,適當調整該切割參數,使該資料點之分佈空間於切割後形成9個網格2,而形成九宮格之排列。為便利後續敘述,於此將該9個網格由左而右,由上而下依序定義為網格2a、2b、2c、2d、2e、2f、2g、2h、2i。Referring to FIG. 4, step 2 of the present invention cuts a data set 1 including a plurality of data points 11 according to the cutting parameters to form a plurality of meshes 2, and the data points 11 are distributed in These are within grid 2. More specifically, the distribution space of the data points 11 is cut according to the cutting parameter, and a plurality of meshes 2 are obtained, so that the data points 11 are completely distributed in the meshes 2, so that A higher coverage rate for these data points can be obtained, thereby improving the accuracy of the execution results. Taking FIG. 4 as an example, the data points 11 of this embodiment are distributed in a two-dimensional plane space. In this embodiment, after the completion of the embodiment, the distribution of the data points 11 is represented by an initial structure of 3×3. Therefore, the cutting parameters are appropriately adjusted, so that the distribution space of the data points forms 9 grids 2 after cutting, and the formation is performed. The arrangement of the nine palaces. To facilitate the subsequent description, the nine grids are defined from left to right, from top to bottom, into grids 2a, 2b, 2c, 2d, 2e, 2f, 2g, 2h, 2i.

請參照第4圖所示,本發明之步驟3係根據該些網格2內之資料點11數量對該些網格2進行排序。更詳言之,本實施例係選擇以網格2內之資料點11數量進行遞減排序,排序結果依序為網格2f、2d、2h、2e、2a、2b,網格2c、2g、2i內皆無資料點11分佈。Referring to FIG. 4, step 3 of the present invention sorts the grids 2 according to the number of data points 11 in the grids 2. More specifically, in this embodiment, the number of data points 11 in the grid 2 is selected to be descended and sorted, and the sorting results are sequentially into grids 2f, 2d, 2h, 2e, 2a, 2b, grids 2c, 2g, 2i. There is no data point 11 distribution inside.

請參照第5圖所示,本發明之步驟4係根據該網格2之排序,於含有資料點11之網格2內依序選取一個資料點11作為一初始點12。更詳言之,延續上述例子,依序由含有資料點11之網格2f、2d、2h、2e、2a、2b內分別取出一個資料點作為初始點12。至此,共取出6個初始點12。Referring to FIG. 5, step 4 of the present invention sequentially selects a data point 11 as an initial point 12 in the grid 2 containing the data points 11 according to the order of the grid 2. More specifically, continuing the above example, a data point is sequentially taken out from the meshes 2f, 2d, 2h, 2e, 2a, 2b containing the data points 11 as the initial point 12. At this point, a total of six initial points 12 are taken out.

請參照第6圖所示,本發明之步驟5係重複進行該步驟4,取至該些初始點12之數量等於該網格2之總數量為止。更詳言之,由於本實施例欲以3×3的初始架構表示該些資料點11之分佈,因此共需9個初始點12,前述步驟4僅獲得6個初始點12,尚缺3個初始點12,因此,重複進行該步驟4,再依序由該網格2f、2d、2h分別取出一個資料點11作為初始點12。便可初步取得該9個初始點12之位置。藉此,本案透過使該些網格2完全涵蓋該些資料點11,可提升對該些資料點11之覆蓋率;再且,透過根據所含資料點11數量對該網格2進行排序之方式,並依序選取資料點11作為初始點12,可使包含有較多資料點11之網格2優先選取較多的初始點12表示資料點11分佈,而可避免將初始點12設定於無資料點11分佈之網格2中,因此,可有效提升執行效率。Referring to FIG. 6, step 5 of the present invention repeats step 4 until the number of the initial points 12 is equal to the total number of the grids 2. More specifically, since the present embodiment wants to represent the distribution of the data points 11 in a 3×3 initial structure, a total of 9 initial points 12 are required, and the foregoing step 4 only obtains 6 initial points 12, and 3 are still missing. The initial point 12, therefore, repeats step 4, and sequentially takes a data point 11 from the grid 2f, 2d, 2h as the initial point 12. The position of the nine initial points 12 can be initially obtained. Therefore, in the present case, by making the grids 2 completely cover the data points 11, the coverage of the data points 11 can be improved; and, by arranging the grids 2 according to the number of data points 11 included. The method, and sequentially selecting the data point 11 as the initial point 12, can make the grid 2 containing more data points 11 preferentially select more initial points 12 to represent the distribution of the data points 11, and avoid setting the initial point 12 to There is no data point 11 in the distribution grid 2, therefore, the execution efficiency can be effectively improved.

至此,本實施例便可獲得該9個初始點12之初始位置,但尚未將該些初始點12之相對關係進行連結,因此另進行後續步驟,以將該9個初始點12連結,以獲得該初始架構。So far, the initial position of the nine initial points 12 can be obtained in this embodiment, but the relative relationship of the initial points 12 has not been connected, so another step is performed to link the nine initial points 12 to obtain The initial architecture.

請再參照第7圖所示,本發明之步驟6係將各二相鄰網格2之中心點21相連結,以形成一次網格區域3。更詳言之,本實施例透過將任二相鄰網格2之中心點21相連結,便可獲得由9個中心點21所共同構成之田字形的次網格區域3,以利用該次網格區域3作為初始架構之連接關係的判斷基準。其中該次網格區域3具有數個外邊界B。為方便後續說明,於第8圖後將該9個中心點21由左而右,由上而下排序依序定義為中心點21a、21b、21c、21d、21e、21f、21g、21h、21i。Referring again to FIG. 7, step 6 of the present invention joins the center points 21 of the two adjacent grids 2 to form the primary grid region 3. More specifically, in the present embodiment, by connecting the center points 21 of any two adjacent meshes 2, a sub-grid region 3 composed of nine center points 21 can be obtained to utilize the time. The mesh area 3 serves as a criterion for judging the connection relationship of the initial architecture. The sub-grid area 3 has a plurality of outer boundaries B. For convenience of the following description, the nine center points 21 are left and right after the eighth picture, and the top-down order is sequentially defined as the center points 21a, 21b, 21c, 21d, 21e, 21f, 21g, 21h, 21i. .

請再參照第8圖所示,本發明之步驟7係以相距最遠之二個初始點12分別作為第一初始點12a與第二初始點12i,且於該次網格區域3中以位於對角角落的二個中心點21a、21i分別作為第一中心點21a及第二中心點21i,以分別對應該第一初始點12a與第二初始點12i。更詳言之,本實施例透過計算各該初始點12彼此間的阿基里得距離,選出距離最遠的兩個初始點12作為第一初始點12a與第二初始點12i;同時,由於該次網格區域3中,對角距離最遠,因此亦選擇位於對角角落之中心點21分別作為第一中心點21a及第二中心點21i,以分別對應該第一初始點12a與第二初始點12i。Referring to FIG. 8 again, step 7 of the present invention takes the two initial points 12 which are furthest apart as the first initial point 12a and the second initial point 12i, respectively, and is located in the sub-grid area 3 The two center points 21a, 21i of the diagonal corners serve as a first center point 21a and a second center point 21i, respectively, to correspond to the first initial point 12a and the second initial point 12i, respectively. In more detail, in the present embodiment, by calculating the Achilles distance between the initial points 12, the two initial points 12 farthest from each other are selected as the first initial point 12a and the second initial point 12i; In the sub-grid region 3, the diagonal distance is the farthest, so the center point 21 located at the diagonal corner is also selected as the first center point 21a and the second center point 21i, respectively, to respectively correspond to the first initial point 12a and the first Two initial points 12i.

請再參照第9圖所示,本發明之步驟8係以與該第一初始點12a與第二初始點12i之距離總和最遠的初始點12作為基準初始點12c,並以該次網格區域3中位於另一角落之中心點21作為對應該基準初始點12c之基準中心點21c。更詳言之,相同計算其他七個初始點12與該第一初始點12a與第二初始點12i之阿基里得距離總和,選擇距離總和最遠之初始點12作為基準初始點12c。同時,於該次網格區域3中,以距離該第一中心點21a及第二中心點21i最遠的中心點21c作為基準中心點21c,使得該基準初始點12c與該基準中心點21c相對應。Referring again to FIG. 9, step 8 of the present invention uses the initial point 12 which is the farthest from the sum of the first initial point 12a and the second initial point 12i as the reference initial point 12c, and the secondary grid The center point 21 in the other corner of the area 3 serves as the reference center point 21c corresponding to the reference initial point 12c. More specifically, the sum of the other seven initial points 12 and the Achilles distance of the first initial point 12a and the second initial point 12i is calculated in the same manner, and the initial point 12 farthest from the sum is selected as the reference initial point 12c. Meanwhile, in the sub-grid region 3, the center point 21c farthest from the first center point 21a and the second center point 21i is used as the reference center point 21c, so that the reference initial point 12c is compared with the reference center point 21c. correspond.

請再參照第10圖所示,本發明之步驟9係以該第一中心點21a作為起始中心點22,沿著該次網格區域3之外邊界B分別向該第二中心點21i移動一格距離所獲得之二個中心點21,並對該二中心點21進行連線獲得一基準線L,並以該基準線L所經過之中心點21作為層中心點23。舉例而言,於第10圖中,該起始中心點22分別沿著二外邊界B分別向右及向下移動一格後獲得之中心點21b、21d,將該中心點21b、21d進行連線後獲得該基準線L。而該基準線L僅通過該中心點21b、21d,因此以該中心點21b、21d作為層中心點23。如此,該基準線L所通過之中心點21便為位於同一層之層中心點23,若將該起始中心點22視為第一層,則透過此步驟便可找出下一層(第二層)之層中心點23之數量為兩個。Referring again to FIG. 10, step 9 of the present invention uses the first center point 21a as a starting center point 22, and moves to the second center point 21i along the outer boundary B of the sub-grid area 3, respectively. The two center points 21 obtained are separated by a grid, and the two center points 21 are connected to obtain a reference line L, and the center point 21 through which the reference line L passes is used as the layer center point 23. For example, in FIG. 10, the starting center point 22 is respectively moved to the right and the downward direction along the two outer boundaries B to obtain the center points 21b and 21d, and the center points 21b and 21d are connected. The reference line L is obtained after the line. Since the reference line L passes only the center points 21b and 21d, the center points 21b and 21d are used as the layer center point 23. Thus, the center point 21 through which the reference line L passes is the center point 23 of the layer located in the same layer. If the starting center point 22 is regarded as the first layer, the next layer can be found through this step (second The number of layer center points 23 of the layers is two.

請再參照第10圖所示,本發明之步驟10,以該第一初始點12a作為中點13,依序選擇最靠近該中點13之數個初始點12作為層初始點14,且該層初始點14之數量等於該層中心點23之數量。更詳言之,由於該步驟9中已獲得下一層之層中心點23之數量為兩個,因此,於該些初始點12中,相同以該第一初始點12a(第一層)作為中點13出發,以阿基里得距離運算計算出最靠近該中點13的兩個初始點12作為層初始點14(第二層),亦即該二層初始點14將對應該二層中心點21b、21d。然而需進行下一步驟以確認那個層初始點14是對應該層中心點21b,那個層初始點14是對應該層中心點21d。Referring to FIG. 10 again, in step 10 of the present invention, the first initial point 12a is used as the midpoint 13, and the plurality of initial points 12 closest to the midpoint 13 are sequentially selected as the layer initial point 14, and the The number of layer initial points 14 is equal to the number of center points 23 of the layer. More specifically, since the number of the layer center points 23 of the next layer in the step 9 is two, in the initial points 12, the first initial point 12a (the first layer) is the same. Starting at point 13, the two initial points 12 closest to the midpoint 13 are calculated as the layer initial point 14 (the second layer) by the Achilles distance calculation, that is, the second layer initial point 14 will correspond to the second layer center. Points 21b, 21d. However, the next step is required to confirm that the layer initial point 14 is the corresponding layer center point 21b, and that layer initial point 14 is the corresponding layer center point 21d.

請再參照第10圖所示,本發明之步驟11係根據該些層初始點14與該基準初始點12c之距離對該些層初始點14進行排序,並根據該些層中心點23與該基準中心點21c之距離對該些層中心點23進行排序,依據該排序使該些層中心點23分別對應該些層初始點14。更詳言之,以該二層初始點14來看,其中一層初始點14較靠近該基準初始點12c;同時,以該次網格區域3來看,該層中心點21b與21d相較之下,該層中心點21b離該基準中心點21c較近,因此可得知透過距離的排序而獲得較靠近該基準初始點12c的層初始點14係對應該層中心點21b,因此作為對應層中心點21b之初始點12b;而另一層初始點14則對應該層中心點21d而作為初始點12d。如此,透過與該基準初始點12c及該基準中心點21c的距離關係,可正確定義出該初始點12所對應之中心點21。至此,便完成該第二層之初始點12與中心點21之對應關係。Referring to FIG. 10 again, step 11 of the present invention sorts the layer initial points 14 according to the distance between the layer initial points 14 and the reference initial point 12c, and according to the layer center points 23 and The distance from the reference center point 21c ranks the layer center points 23, and the layer center points 23 correspond to the layer initial points 14 respectively according to the ordering. More specifically, in view of the two-layer initial point 14, one of the initial points 14 is closer to the reference initial point 12c; and, at the same time, the center point 21b of the layer is compared with 21d. Next, the layer center point 21b is closer to the reference center point 21c, so that the order of the transmission distance is obtained, and the layer initial point 14 closer to the reference initial point 12c is obtained corresponding to the layer center point 21b, and thus the corresponding layer The initial point 12b of the center point 21b; and the other layer initial point 14 corresponds to the layer center point 21d as the initial point 12d. Thus, the center point 21 corresponding to the initial point 12 can be correctly defined by the distance relationship between the reference initial point 12c and the reference center point 21c. So far, the correspondence between the initial point 12 of the second layer and the center point 21 is completed.

請再參照第11圖所示,本發明之步驟12係以相連線之中心點21作為該起始中心點22,以該些層初始點14之中心作為該中點13,重複進行步驟9~11,直至所有初始點12皆分別對應有一中心點21。更詳言之,前述步驟已完成第二層之初始點12與中心點21之對應關係。接著,需對下一層(第三層)之初始點12與中心點21進行明確的定義。因此,延續上述例子,需以前述相連線之中心點21b、21d作為該起始中心點22(第二層之中心點),進行該步驟9,分別沿著該二外邊界B移動一格距離,亦即分別向右及向下移動一格距離所獲得之二中心點21c、21g,並對該二中心點21c、21g連線形成該基準線L,該基準線L通過中心點21c、21e、21g共三點(第三層之中心點),因此,第三層之數量為三。然而由於該基準初始點12c以對應該基準中心點21c,因此無須將該基準初始點12c納入計算,僅需於第三層找尋兩個初始點12對應該中心點21e、21g。Referring to FIG. 11 again, step 12 of the present invention uses the center point 21 of the connected line as the starting center point 22, and the center of the layer initial point 14 as the midpoint 13 is repeated step 9 ~11, until all the initial points 12 correspond to a center point 21, respectively. More specifically, the foregoing steps have completed the correspondence between the initial point 12 of the second layer and the center point 21. Next, the initial point 12 and the center point 21 of the next layer (third layer) need to be clearly defined. Therefore, continuing the above example, the center point 21b, 21d of the connected line is used as the starting center point 22 (the center point of the second layer), and the step 9 is performed to move one space along the two outer boundaries B, respectively. The distance, that is, the two center points 21c and 21g obtained by moving the distance to the right and the downward direction respectively, and connecting the two center points 21c and 21g to form the reference line L, the reference line L passing through the center point 21c, 21e and 21g have three points (the center point of the third layer), so the number of the third layer is three. However, since the reference initial point 12c corresponds to the reference center point 21c, it is not necessary to incorporate the reference initial point 12c into the calculation, and only the two initial points 12 corresponding to the center point 21e, 21g need to be found in the third layer.

接著,再以該些層初始點12b、12d(第二層之層初始點)之中心作為該中點13’,如第11圖所示,進行該步驟10,選取最靠近該中點13’之兩個初始點12作為層初始點14’(第三層)。Then, the center of the layer initial points 12b, 12d (the initial point of the layer of the second layer) is used as the midpoint 13'. As shown in FIG. 11, the step 10 is performed, and the closest to the midpoint 13' is selected. The two initial points 12 serve as layer initial points 14' (third layer).

再進行該步驟11,因此可判斷靠該基準初始點12c較近的層初始點14’係對應靠基準中心點21c較近的層中心點21e,將其定義為初始點12e;另一個層初始點14’便對應該層中心點21g,而為初始點12g。至此重複該步驟9~11,便再進一步完成第三層之初始點12與中心點21的對應關係。Further, step 11 is performed, so that it can be determined that the layer initial point 14' closer to the reference initial point 12c corresponds to the layer center point 21e closer to the reference center point 21c, and is defined as the initial point 12e; Point 14' corresponds to the layer center point 21g and is the initial point 12g. By repeating the steps 9 to 11 at this point, the correspondence between the initial point 12 of the third layer and the center point 21 is further completed.

由於尚有兩個初始點12為對應有中心點21,因此需再重複進行該步驟9至11。請參照第12圖所示,以前述相連線之中心點21c、21g作為該起始中心點22(第三層之中心點),進行該步驟9,分別沿著該二外邊界B移動一格距離,亦即分別向下及向又移動一格距離所獲得之二中心點21f、21h,並對該二中心點21f、21h連線形成該基準線L,該基準線L通過中心點21f、21h共二點(第四層之中心點),因此,第四層之初始點12的數量為二。Since there are still two initial points 12 corresponding to the center point 21, the steps 9 to 11 need to be repeated. Referring to FIG. 12, the center point 21c, 21g of the connected line is used as the starting center point 22 (the center point of the third layer), and the step 9 is performed to move along the two outer boundaries B, respectively. The grid distance, that is, the two center points 21f, 21h obtained by moving one space downward and downward respectively, and connecting the two center points 21f, 21h to form the reference line L, the reference line L passing through the center point 21f There are two points in 21h (the center point of the fourth layer), so the number of initial points 12 of the fourth layer is two.

接著,再以該些層初始點12c、12e、12g(第三層之層初始點)之中心作為該中點13”,如第12圖所示,進行該步驟10,選取最靠近該中點13”之兩個初始點12作為層初始點14”(第三層)。Then, the center of the layer initial points 12c, 12e, and 12g (the initial point of the layer of the third layer) is used as the midpoint 13". As shown in FIG. 12, the step 10 is performed to select the closest to the midpoint. Two initial points 12 of 13" are used as layer initial points 14" (third layer).

再進行該步驟11,因此可判斷靠該基準初始點12c較近的層初始點14”係對應靠基準中心點21c較近的層中心點21f,將其定義為初始點12f;另一層初始點14”便對應該層中心點21h,而為初始點12h。至此,便完成第四層之初始點12與中心點21的對應關係。而使得所有初始點12皆分別對應有一中心點21,因此可進行下一步驟。Further, the step 11 is performed, so that it can be determined that the layer initial point 14" closer to the reference initial point 12c corresponds to the layer center point 21f which is closer to the reference center point 21c, and is defined as the initial point 12f; the other layer initial point 14" corresponds to the center point 21h, and is the initial point 12h. So far, the correspondence between the initial point 12 of the fourth layer and the center point 21 is completed. All of the initial points 12 are respectively associated with a center point 21, so the next step can be performed.

請參照第13圖所示,本發明之步驟13係根據該些中心點21之連接關係對該些初始點12進行連接,以獲得自組織映射圖網路之初始架構。更詳言之,僅需根據該次網格區域3中之中心點連接關係,依序對該些初始點12進行連接便可獲得自組織映射圖網路之初始架構。舉例而言,該中心點21a係與中心點21b、21d相連接,則將對應該中心點21a之初始點12a,連接至對應中心點21b、21d之初始點12b、12d,以此類推建立所有初始點之連接關係,便可完成該自組織映射圖網路之初始架構。由第13圖可得知,本發明所產生之初始架構分佈已相當接近該些資料點11之真實分佈。因此,再進行後續自組織映射圖網路之運算,可有效降低執行時間。Referring to FIG. 13, step 13 of the present invention connects the initial points 12 according to the connection relationship of the central points 21 to obtain an initial structure of the self-organizing map network. More specifically, the initial structure of the self-organizing map network can be obtained by sequentially connecting the initial points 12 according to the central point connection relationship in the sub-grid area 3. For example, the center point 21a is connected to the center points 21b, 21d, and the initial point 12a corresponding to the center point 21a is connected to the initial points 12b, 12d of the corresponding center points 21b, 21d, and so on. The initial connection of the self-organizing map network can be completed by the initial point connection. As can be seen from Fig. 13, the initial architectural distribution produced by the present invention is quite close to the true distribution of the data points 11. Therefore, the subsequent operation of the self-organizing map network can effectively reduce the execution time.

如上所述,本發明透過該步驟2~5,除了可將所有資料點涵蓋於該些網格2內,透過以網格2內所含資料點11數量多寡進行排序,而依序選取該初始點12,可避免於沒有資料點11之位置配置初始點12,而降低後續之執行效率。As described above, the present invention passes through the steps 2 to 5, except that all the data points can be covered in the grids 2, and the initials are sequentially selected by sorting the number of the data points 11 contained in the grid 2. At point 12, the initial point 12 can be prevented from being configured at the position where there is no data point 11, and the subsequent execution efficiency is reduced.

此外,本發明透過先決定二個相距最遠之初始點12a、12i作為對應該次網格區域3二對角角落之中心點21a、21i,以及決定該基準初始點12c及對應之基準中心點21c,以依序推得各層之層初始點14數量,並與該基準初始點12c進行距離比較,以確認該層初始點14所對應之中心點21,並根據該些中心點21之連接關係連接該些相對應之初始點12以產生初始架構,使該初始架構可初步符合該些資料點11之真實分佈,以提高執行效率並降低後續之執行時間。In addition, the present invention determines the two initial points 12a, 12i which are farthest apart as the center points 21a, 21i corresponding to the two diagonal corners of the sub-grid area 3, and determines the reference initial point 12c and the corresponding reference center point. 21c, in order to infer the number of layer initial points 14 of each layer, and compare the distance with the reference initial point 12c to confirm the center point 21 corresponding to the layer initial point 14, and according to the connection relationship of the center points 21 The corresponding initial points 12 are connected to generate an initial architecture, so that the initial architecture can initially conform to the true distribution of the data points 11 to improve execution efficiency and reduce subsequent execution time.

雖然本發明已利用上述較佳實施例揭示,然其並非用以限定本發明,任何熟習此技藝者在不脫離本發明之精神和範圍之內,相對上述實施例進行各種更動與修改仍屬本發明所保護之技術範疇,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。While the invention has been described in connection with the preferred embodiments described above, it is not intended to limit the scope of the invention. The technical scope of the invention is protected, and therefore the scope of the invention is defined by the scope of the appended claims.

[本發明][this invention]

1...資料集1. . . Data set

11...資料點11. . . Data point

12...初始點12. . . Initial point

12a...第一初始點12a. . . First initial point

12b...初始點12b. . . Initial point

12c...基準初始點12c. . . Baseline initial point

12d~12h...初始點12d~12h. . . Initial point

12i...第二初始點12i. . . Second initial point

13...中點13. . . midpoint

13’...中點13’. . . midpoint

13”...中點13"... midpoint

14...層初始點14. . . Layer initial point

14’...層初始點14’. . . Layer initial point

14”...層初始點14"...layer initial point

2...網格2. . . grid

2a...網格2a. . . grid

2b...網格2b. . . grid

2c...網格2c. . . grid

2d...網格2d. . . grid

2e...網格2e. . . grid

2f...網格2f. . . grid

2g...網格2g. . . grid

2h...網格2h. . . grid

2i...網格2i. . . grid

21...中心點twenty one. . . Center point

21a...第一中心點21a. . . First center point

21b...中心點21b. . . Center point

21c...基準中心點21c. . . Reference center point

21d~21h...中心點21d~21h. . . Center point

21i...第二中心點21i. . . Second center point

22...起始中心點twenty two. . . Starting center point

23...層中心點twenty three. . . Layer center point

B...外邊界B. . . Outer boundary

L...基準線L. . . Baseline

[先前技術][Prior technology]

91...資料點91. . . Data point

91’...資料點91’. . . Data point

92...網格92. . . grid

93...初始點93. . . Initial point

93’...初始點93’. . . Initial point

第1圖:習用自組織映射圖網路之初始架構產生方法之示意圖。Figure 1: Schematic diagram of the initial architecture generation method for the custom self-organizing map network.

第2圖:另一習用自組織映射圖網路之初始架構產生方法之示意圖。Figure 2: Schematic diagram of another initial architecture generation method for a self-organizing map network.

第3圖:本發明之資料集的示意圖。Figure 3: Schematic representation of the data set of the present invention.

第4圖:本發明之步驟2之示意圖。Figure 4: Schematic diagram of step 2 of the present invention.

第5圖:本發明之步驟4之示意圖。Figure 5: Schematic diagram of step 4 of the present invention.

第6圖:本發明之步驟5的示意圖。Figure 6: Schematic diagram of step 5 of the present invention.

第7圖:本發明之步驟6的示意圖。Figure 7: Schematic diagram of step 6 of the present invention.

第8圖:本發明之步驟7的示意圖。Figure 8: Schematic diagram of step 7 of the present invention.

第9圖:本發明之步驟8的示意圖。Figure 9: Schematic diagram of step 8 of the present invention.

第10圖:本發明之步驟9~11的示意圖。Figure 10: Schematic diagram of steps 9-11 of the present invention.

第11圖:本發明之步驟12的示意圖。Figure 11: Schematic diagram of step 12 of the present invention.

第12圖:本發明之步驟12的示意圖。Figure 12: Schematic diagram of step 12 of the present invention.

第13圖:本發明之步驟13的示意圖。Figure 13: Schematic diagram of step 13 of the present invention.

1...資料集1. . . Data set

11...資料點11. . . Data point

12a...第一初始點12a. . . First initial point

12b...初始點12b. . . Initial point

12c...基準初始點12c. . . Baseline initial point

12d~12h...初始點12d~12h. . . Initial point

12i...第二初始點12i. . . Second initial point

Claims (3)

一種自組織映射圖網路之初始架構產生方法,其包含步驟:步驟1,設定切割參數;步驟2,依據該切割參數對一包含有數個資料點之資料集進行切割,以形成數個網格,且該些資料點係分佈於該些網格內;步驟3,根據該些網格內之資料點數量對該些網格進行排序;步驟4,根據該網格之排序,於含有資料點之網格內依序選取一個資料點作為一初始點;步驟5,重複進行該步驟4,取至初始點之數量等於網格之總數量為止;步驟6,將各二相鄰之網格之中心點相連結,以形成一次網格區域;步驟7,以相距最遠之二個初始點分別作為第一初始點與第二初始點,且於該次網格區域中以位於對角角落的二個中心點分別作為第一中心點及第二中心點,以分別對應該第一初始點與第二初始點;步驟8,以距離該第一初始點與第二初始點之距離總和最遠之初始點作為基準初始點,並以該次網格區域中位於另一角落之中心點作為對應該基準初始點之基準中心點;步驟9,以該第一中心點作為起始中心點,沿著該次網格區域之邊界分別向該第二中心點移動一格距離所獲得之二個中心點,並對該二中心點進行連線獲得一基準線,以該基準線所經過之中心點作為層中心點;步驟10,以該第一初始點作為中點,依序選擇最靠近該中點之數個初始點作為層初始點,且該層初始點之數量等於該層中心點之數量;步驟11,根據該些層初始點與該基準初始點之距離對該些層初始點進行排序,並根據該些層中心點與該基準中心點之距離對該些層中心點進行排序,依據該排序使該些層中心點分別對應該些層初始點;步驟12,以該二連線中心點作為該起始中心點,以該些層初始點之中心作為該中點,重複進行步驟9~11,直至所有初始點皆分別對應有一中心點;及步驟13,根據該些中心點之連接關係對該些初始點進行連接,以獲得自組織映射圖網路之初始架構。An initial architecture generation method for a self-organizing map network, comprising the steps of: step 1: setting a cutting parameter; and step 2, cutting a data set including a plurality of data points according to the cutting parameter to form a plurality of grids And the data points are distributed in the grids; in step 3, the grids are sorted according to the number of data points in the grids; and step 4, according to the sorting of the grids, in the data points Select a data point as an initial point in the grid; in step 5, repeat step 4, and take the number of initial points equal to the total number of grids; in step 6, the two adjacent grids The center points are connected to form a mesh area; in step 7, the two initial points that are furthest apart are respectively used as the first initial point and the second initial point, and in the sub-grid area, in the diagonal corner The two center points respectively serve as a first center point and a second center point to respectively correspond to the first initial point and the second initial point; and in step 8, the farthest distance from the first initial point and the second initial point Initial point as the base An initial point, and a center point located at another corner of the sub-grid area as a reference center point corresponding to the initial point of the reference; and step 9, the first center point is used as a starting center point along the sub-grid The boundary of the region is respectively moved to the second center point by two distance points obtained by a distance, and the two center points are connected to obtain a reference line, and the center point passing through the reference line is used as a layer center point; Step 10: using the first initial point as a midpoint, sequentially selecting a plurality of initial points closest to the midpoint as a layer initial point, and the number of initial points of the layer is equal to the number of central points of the layer; step 11, according to Sorting the initial points of the layers by the distance between the initial points of the layers and the initial points of the layers, and sorting the center points of the layers according to the distance between the center points of the layers and the reference center point, according to the sorting The layer center points respectively correspond to the layer initial points; in step 12, the two line center points are used as the starting center point, and the center of the layer initial points is used as the midpoint, and steps 9 to 11 are repeated until all Initial points are respectively Corresponding to a center point; and step 13, connecting the initial points according to the connection relationship of the center points to obtain an initial structure of the self-organizing map network. 依申請專利範圍第1項所述之自組織映射圖網路之初始架構產生方法,其中該步驟3中,該排序係為遞減排序。The method for generating an initial architecture of the self-organizing map network according to the first aspect of the patent application scope, wherein in the step 3, the ranking is a descending order. 依申請專利範圍第1項所述之自組織映射圖網路之初始架構產生方法,其中該步驟11中,係根據該些層初始點與該基準初始點之距離對該些層初始點進行遞減排序,並根據該些層中心點與該基準中心點之距離對該些層中心點進行遞減排序。The method for generating an initial structure of the self-organizing map network according to the first aspect of the patent application scope, wherein in step 11, the initial points of the layers are decremented according to the distance between the initial points of the layers and the reference initial point Sorting, and descending the center points of the layers according to the distance between the layer center points and the reference center point.
TW99134043A 2010-10-06 2010-10-06 A method for generating an initialization scheme of self-organizing map TWI427546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99134043A TWI427546B (en) 2010-10-06 2010-10-06 A method for generating an initialization scheme of self-organizing map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99134043A TWI427546B (en) 2010-10-06 2010-10-06 A method for generating an initialization scheme of self-organizing map

Publications (2)

Publication Number Publication Date
TW201216177A TW201216177A (en) 2012-04-16
TWI427546B true TWI427546B (en) 2014-02-21

Family

ID=46787121

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99134043A TWI427546B (en) 2010-10-06 2010-10-06 A method for generating an initialization scheme of self-organizing map

Country Status (1)

Country Link
TW (1) TWI427546B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200416574A (en) * 2003-02-27 2004-09-01 Univ Yuan Ze Application of data mining to customer relationship management
TW200712942A (en) * 2005-09-20 2007-04-01 Univ Nat Central Structure of traceability ontology and constructing method thereof
US20090259606A1 (en) * 2008-04-11 2009-10-15 Seah Vincent Pei-Wen Diversified, self-organizing map system and method
TW200947334A (en) * 2008-05-07 2009-11-16 Univ Nat Taiwan Science Tech A device for modifying a trade model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200416574A (en) * 2003-02-27 2004-09-01 Univ Yuan Ze Application of data mining to customer relationship management
TW200712942A (en) * 2005-09-20 2007-04-01 Univ Nat Central Structure of traceability ontology and constructing method thereof
US20090259606A1 (en) * 2008-04-11 2009-10-15 Seah Vincent Pei-Wen Diversified, self-organizing map system and method
TW200947334A (en) * 2008-05-07 2009-11-16 Univ Nat Taiwan Science Tech A device for modifying a trade model

Also Published As

Publication number Publication date
TW201216177A (en) 2012-04-16

Similar Documents

Publication Publication Date Title
CN110795908B (en) Bus sensing overall wiring method driven by deviation
US5877091A (en) Multilayer routing method and structure for semiconductor integrated circuit
CN103389683A (en) CAM (computer-aided manufacturing) system of high-power thick-plate numerical control laser cutting machine and method
CN110516004B (en) Visualization method and system giving consideration to information global characteristics and local hierarchical structure
CN107330214A (en) Spatial configuration optimal method based on discretization Yu heuristic evolution algorithm
CN102306396A (en) Three-dimensional entity model surface finite element mesh automatic generation method
JP2018509704A (en) Method and system for generating architectural blueprints using slices
CN114548019B (en) Cutting layout design method suitable for introducing customized chip and chip prepared by cutting layout design method
CN104238455B (en) A kind of processing method of utilization Panels Surface of Ball-end Milling Cutting free form surface
CN110363854A (en) Circular formwork dividing method, device, computer equipment and storage medium
CN103838907A (en) Curved surface cutting trajectory obtaining method based on STL model
CN104715127A (en) Identification method and system for complaint hot spot region
TWI489302B (en) Double patterning compatible colorless m1 route
EP2599054A1 (en) Inserting content and exclusion zone(s) into a page
CN114241087B (en) Building plane layout generation method based on bubble diagrams
TWI427546B (en) A method for generating an initialization scheme of self-organizing map
CN112199918B (en) Method for reconstructing physical connection relation of general EDA model layout
JPH0421910B2 (en)
CN112183007A (en) Design segmentation method for multiple FPGAs
CN112417646A (en) Scanning path planning method and device based on odd multi-laser and three-dimensional object manufacturing equipment
CN115294237A (en) Power simulation modeling connection line optimization method, device and equipment and readable storage medium
US10460064B1 (en) Partition-aware grid graph based hierarchical global routing
CN111260758B (en) Method and system for constructing hierarchical relationship of planar administrative region
CN114742009A (en) Layout design method of power device, chip and terminal
CN115526138A (en) Layout method and device for integrated circuit

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees