Subject: CGAL users discussion list
List archive
- From: Simon Giraudot <>
- To:
- Subject: Re: [cgal-discuss] Fwd: CGAL classification
- Date: Mon, 2 Mar 2020 10:11:41 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:0YntBRxB4QIVgKPXCy+O+j09IxM/srCxBDY+r6Qd0usVI/ad9pjvdHbS+e9qxAeQG9mCt7Qd07Gd6vqxEUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba59IRmssAndqscbjYR/JqovzhbCv2dFdflRyW50Kl2fmArx6N2t95B56SRQvPwh989EUarkeqkzUKJVAjc7PW0r/cPnrRbMQxeB6XsaSWUWjwFHAxPZ4xHgX5f+qTX1u+xg0ySHJ8L2TLQ0WTO/76d3TRLjlSkKOyIl/GzRl8d9ir9QrhC8qBxl24PafZ+bNPR+cK3ec90VS2VOUcRNWCFaGIywc5ECAvAdMetWrYTwoUYFoxukBQmrAePi0iJGhn7z3a091eQqDADI3A06H90UrXTbsdL1NLsPWu2y16nIzDDDb/RQ2Tvn54jIcwohruuRXb1tdsrR1VIiFwzbgVWXrIzqIS+V1v4NsmiV9eVvSf6vi2k9qwBxuDSg2sAsiozQi48T11vK+yJ5wIMvKt25Tk52ecKrEJRKuCGeLYd2RdkiQ25wtCY11LIGvpu7czYWyJQ9xx/fZeaIfJSU4hLkTuaQIS10i25ieLK6nxqy/kmgyvH8Vsmpy1lGtDZKkt7Jtn0Lyhfd6dCHR+Ny80qgwzqDyhzf5+FeLU00lqfXMZoszqMompcXrUjPBDL6lFj3gaOMaEkp+ual5/7jb7n7vpOQK5V4hh3kPqgygMCzHeI1ORUQUmif5OS8z6Hj8lPjQLtXj/03k7fWvYjGKckdu6W3GRVa0pw55Ba6Fzqm0MoXnX0ALF9deh+LlY3pO1bTLP36DvqzmVGsny1qx/DCJ7HhBYjNLmTZnLfmY7Z961RQyAwtwtBD/55UC7cBL+zvWkLpu9HVDwU1PxGoz+vnEtlw1oATVXiLD6OEKK/StEWH5uMrI+mCfo8VvzP9JuA+5/7viH85nlkdcbOm3ZsWcnC3BOlmLFieYXrwmdoBHnkFvg07TOP0lF2CSz5SZ3ioUK0g+jE7D5imDIfZSo+xh7yB2T+3HodKaWBeFlCMDXDoep2YVPcDci2SJtZtnSEFVbi6V4AhyAqutBThxrp8LuvU/zUYuoj52Nh04e3TjxAy+iZuA8STyWGBV2R0nmQVSDAoxK1/ukl9ykub0aRhhPxYCMBT6+tJUggkMZ7cyPR3C8j2Wg3bftaGVkymT9eoDDw+VN4xw8UBb1x6G9W8jhDPxSyqDKEJl7CTBZw09LzT32TpKsph0XrKyLMtg0U8TsdTLWGmnLJw9xDPB47VlEWUj7qldasG0y7J7WuM0GuOvFpEXw5tSqXFRmsSZkrQrdTj50PNVaWiCbo9MlgJ9cnXIaRDbpjljE5NWez4ENXYeWO43WmqVjiSwbbZV4vvfGNV8yTHAVUIlBxbqW2HMA84QCiguWvDADtyPV3iZEbh7fNvpnqwUkgu3keBaEg3hOn9wQIcmfHJE6Bb5bkDoip082wlTmb45MrfDp+7nyQkeaxdZd0n51IdjDDWugt4M4C6Pq5rjUIZaRUxtETrhU0uVtdw1PMypXZv9zJcbLqC2QkYJTyV2pX9JqfGJGD54Be1eujd3VSMiI/LqJdK0+wxrhDYhC/sFkcm9C85gYYT1nzFucWMCQMTVdf2T1px8AZ64bfXfntl6g==
Hello Zhang, As explained in the manual https://doc.cgal.org/latest/Classification/classCGAL_1_1Classification_1_1ETHZ_1_1Random__forest__classifier.html#a7c0b299cb5829f598f395bcc16df72fa the expected format for the ground truth range that you give to the train() function is, for each input point, the index of its expected label in the Label_set that you used. Judging by the breakpoint you provided, the ground truth that you
pass probably contains indices which exceed the Label_set number
of labels (I'm mostly guessing as you don't provide any code/data
for context). Points with label value -1 are ignored, but there's no problem in giving a fully labeled dataset to the random forest. Best regards, -- Simon Giraudot, PhD R&D Engineer GeometryFactory - http://geometryfactory.com/ Le 29/02/2020 à 09:03, Zhang Jinwei a
écrit :
Dear Simon,
Thanks for your kindly reply. After reading your
demo codes, I have already fixed several errors due to the file
format. Now the problem occurs at the training step, where the
break point locates in node.hpp from the ETHZ random forest
package. If I use the example training dataset, everything is
ok. However, when use my own labeled point clouds, it encounter
such errors.
So may I ask whether there is a specific
definition of the format of the training dataset? In my dataset,
everything point has a label in terms of integer number,
denoting different classes. In your example dataset, just part
of points are labeled and others with default value -1. Then I
am just wondering, isn’t it allowed to give a fully labeled
dataset to random forest? Or perhaps any other reasons?
Thank you again for your help.
Regards,
Jinwei
On Fri 28. Feb 2020 at
17:45, Simon Giraudot <>
wrote:
|
- Re: [cgal-discuss] Fwd: CGAL classification, Simon Giraudot, 03/02/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/11/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Simon Giraudot, 03/11/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
Archive powered by MHonArc 2.6.18.