ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
Parameters.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - CloudViewer: www.cloudViewer.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.cloudViewer.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#pragma once
9
10
// ##########################################################################
11
// # #
12
// # ACLOUDVIEWER PLUGIN: q3DMASC #
13
// # #
14
// # This program is free software; you can redistribute it and/or modify #
15
// # it under the terms of the GNU General Public License as published by #
16
// # the Free Software Foundation; version 2 or later of the License. #
17
// # #
18
// # This program is distributed in the hope that it will be useful, #
19
// # but WITHOUT ANY WARRANTY; without even the implied warranty of #
20
// # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
21
// # GNU General Public License for more details. #
22
// # #
23
// # COPYRIGHT: Dimitri Lague / CNRS / UEB #
24
// # #
25
// ##########################################################################
26
27
namespace
masc
{
28
struct
RandomTreesParams
{
29
int
maxDepth
= 25;
// To be left as a parameter of the training plugin
30
// (default 25)
31
int
minSampleCount
=
32
1;
// To be left as a parameter of the training plugin (default 1)
33
// int maxCategories = 0; //Normally not important as there�s no
34
// categorical variable
35
int
activeVarCount
= 0;
// Use 0 as the default parameter (works best)
36
int
maxTreeCount
=
37
100;
// Left as a parameter of the training plugin (default: 100)
38
};
39
40
struct
TrainParameters
{
41
RandomTreesParams
rt
;
42
float
testDataRatio
= 0.2f;
// percentage of test data
43
};
44
45
};
// namespace masc
masc
3DMASC classifier
Definition:
ContextBasedFeature.h:30
masc::RandomTreesParams
Definition:
Parameters.h:28
masc::RandomTreesParams::maxTreeCount
int maxTreeCount
Definition:
Parameters.h:36
masc::RandomTreesParams::minSampleCount
int minSampleCount
Definition:
Parameters.h:31
masc::RandomTreesParams::activeVarCount
int activeVarCount
Definition:
Parameters.h:35
masc::RandomTreesParams::maxDepth
int maxDepth
Definition:
Parameters.h:29
masc::TrainParameters
Definition:
Parameters.h:40
masc::TrainParameters::testDataRatio
float testDataRatio
Definition:
Parameters.h:42
masc::TrainParameters::rt
RandomTreesParams rt
Definition:
Parameters.h:41
plugins
core
Standard
q3DMASC
Parameters.h
Generated on Wed Jan 28 2026 09:01:07 for ACloudViewer by
1.9.1