ColumnNameAlias.hpp
1 #pragma once
2 
3 #pragma once
4 
5 #include "opals/config.hpp"
6 #include "opals/String.hpp"
7 
8 namespace opals {
9 
10  /// Class for defining column name aliases
11  class OPALS_API ColumnNameAlias
12  {
13  public:
15  /// Use definition string "<columnname>:<alias>" to initialize the object
16  ColumnNameAlias(const char *alias_defition);
17  ColumnNameAlias(const char *name, const char *alias);
18 
19  const char *name() const;
20  const char *alias() const;
21 
22  /// set object data using a definition string "<columnname>:<alias>"
23  void set(const char *alias_defition);
24 
25  protected:
26  String Name;
27  String Alias;
28  };
29 }
logger
Definition: clfSPTTrain.py:255
None report_split_composition(dict per_file_counts, dict split_result, logger)
Definition: clfSPTSetup.py:576
Class for defining column name aliases.
Definition: ColumnNameAlias.hpp:11
Interface to a set of index map objects.
Definition: pyDM.py:4227
general file corruption error: thrown if a file to be used is not interpretable
Definition: c++_api/inc/opals/Exception.hpp:328
base class for exporting original geometry data file
Definition: pyDM.py:5301
overallPointCountUsed
Definition: clfTreeModelTrain.py:175
Definition: clfTreeModelApply.py:86
def _buildAttributeLayout(self, dm, fn)
Definition: clfTreeModelApply.py:115
dict build_class_map(dict found_ids, list ignore_ids, dict overrides)
Builds the class mapping {odm_id -> name}.
Definition: clfSPTSetup.py:247
filterdict
Definition: clfCreateTrainingPatches.py:250
outputDir
Definition: clfTreeModelTrain.py:367
def _checkCompleteness(self)
Definition: clfTreeModelTrain.py:172
logger
Definition: clfTreeModelApply.py:137
overallPointCount
Definition: clfTreeModelTrain.py:370
Definition: clfSPTTrain.py:218
Interface to a factory object for creating AddInfo layouts.
Definition: pyDM.py:1456
logger
Definition: clfSPTSetup.py:1006
def _crossValidate(self, modelPath)
Definition: clfTreeModelTrain.py:264
histogram
Definition: clfTreeModelTrain.py:255
dict create_split(list files, dict per_file_counts, str split_type, dict ratios, logger)
Definition: clfSPTSetup.py:544
coveredClassIds
Definition: clfCreateTrainingPatches.py:190
Definition: clfSPTSetup.py:943
borderDistance
Definition: clfCreateTrainingPatches.py:270
None write_dataset_config_py(str output_path, str datensatz, dict class_map, list ignore_ids, dict feature_flags, dict split_result)
Generates {dataset}_config.py.
Definition: clfSPTSetup.py:658
def _unPrefixAttributeName(self, attr)
Definition: clfTreeModelApply.py:103
programming error which appears if the opals framework wasn't used correctly;
Definition: c++_api/inc/opals/Exception.hpp:201
string RDefaultModel
Definition: clfTreeModelTrain.py:137
thrown if an error in the OPALS file format definition was detected.
Definition: c++_api/inc/opals/Exception.hpp:301
useAttributes
Definition: clfCreateTrainingPatches.py:249
Definition: clfConfusionMatrix.py:23
infile
Definition: clfTreeModelApply.py:140
dict create_project_structure(str project_dir, logger)
Creates the project directories and returns their paths.
Definition: clfSPTSetup.py:612
omitEmptyClasses
Definition: clfCreateTrainingPatches.py:258
logger
Definition: clfSCNNTrain.py:355
filter
Definition: clfTreeModelTrain.py:360
3d point object
Definition: pyDM.py:1666
def _checkColumnName(self, attr)
Definition: clfTreeModelTrain.py:139
None copy_split_files(list files, dict split_result, dict paths, logger)
Definition: clfSPTSetup.py:627
omitEmptyClasses
Definition: clfTreeModelTrain.py:364
def _buildLayout(self, dm, fn, addAttrs=[])
Definition: clfCreateTrainingPatches.py:87
logger
Definition: clfSPTInfer.py:433
Specific import class for handling shape file imports.
Definition: pyDM.py:5482
def _prefixAttributeName(self, attr)
Definition: clfTreeModelTrain.py:257
Helper class for traversing a IndexMapSet object in multiple stages.
Definition: pyDM.py:4284
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
logger
Definition: clfSPTPreprocess.py:441
logger
Definition: clfCreateTrainingPatches.py:232
Definition: pyDM.py:5537
overallPointCountUsed
Definition: clfCreateTrainingPatches.py:110
rDispatcher
Definition: clfTreeModelApply.py:153
Optional[dict] interactive_confirm(dict found_ids, dict class_map, list ignore_ids)
Definition: clfSPTSetup.py:286
infile
Definition: clfCreateTrainingPatches.py:234
def _buildResultLayout(self)
Definition: clfTreeModelApply.py:88
indexmap
Definition: clfTreeModelTrain.py:383
histogram
Definition: clfCreateTrainingPatches.py:227
RParams
Definition: clfTreeModelTrain.py:357
Definition: clfSPTPreprocess.py:340
outBuffer
Definition: clfCreateTrainingPatches.py:239
coveredClassIds
Definition: clfTreeModelTrain.py:220
Object storing a dbf table definition (for shape files)
Definition: pyDM.py:5403
Definition: clfSPTInfer.py:355
None print_class_preview(dict found_ids, dict class_map, list ignore_ids)
Tabular display of the detected classes.
Definition: clfSPTSetup.py:264
logger
Definition: clfTreeModelTrain.py:352
None write_cfg_yaml(str output_path, str datensatz, str project_dir, list point_hf, dict feat_size)
Generates {dataset}.cfg as a YAML file.
Definition: clfSPTSetup.py:799
Definition: clfTreeModelTrain.py:130
thrown if the provided file cannot be opened as an ODM
Definition: c++_api/inc/opals/Exception.hpp:263
filter
Definition: clfConfusionMatrix.py:62
tuple scan_dataset(list files, logger)
Scans all input files.
Definition: clfSPTSetup.py:215
minimalPointsPerClass
Definition: clfTreeModelTrain.py:375
RParams
Definition: clfTreeModelApply.py:142
a general parameter error (usually comes from boost::program_options)
Definition: c++_api/inc/opals/Exception.hpp:213
infile
Definition: clfTreeModelTrain.py:355
def _buildLayout(self, dm, fn, mode=LayoutMode.full, outputWarnings=False)
Definition: clfTreeModelTrain.py:146
Object for storing a cross classification matrix.
Definition: pyDM.py:4374
matrix
Definition: clfConfusionMatrix.py:114
Definition: clfSCNNTrain.py:349
infile
Definition: clfSCNNTrain.py:357
trainingSize
Definition: clfTreeModelTrain.py:372
classlist
Definition: clfTreeModelApply.py:151
Control object are used to get status information of extensive processing step and/or to interrupt th...
Definition: pyDM.py:4129
Definition: clfCreateTrainingPatches.py:49
A dynamic character string whose interface conforms to STL's std::string.
Definition: String.hpp:35
indexmap
Definition: clfCreateTrainingPatches.py:286
classIds
Definition: clfCreateTrainingPatches.py:131
def test_confusion_matrix_output()
test code for confusion matrix output
Definition: clfTreeModelTrain.py:43
Reflects Python's built-in class exceptions.Exception.
Definition: c++_api/inc/opals/Exception.hpp:364
thrown a specified attribute doesn't exists in the corresponding odm.
Definition: c++_api/inc/opals/Exception.hpp:307
filter
Definition: clfTreeModelApply.py:147
Definition: clfTreeModelTrain.py:136
Defines a generic spatial search.
Definition: pyDM.py:3949
tuple detect_features(set available_attrs, logger)
Determines from the available ODM attributes which SPT features can be used.
Definition: clfSPTSetup.py:379
def _computeHistograms(self)
Definition: clfCreateTrainingPatches.py:107
attributlist
Definition: clfTreeModelApply.py:150
inversIndexmap
Definition: clfTreeModelTrain.py:393
layout
Definition: clfCreateTrainingPatches.py:111
overallPointCount
Definition: clfCreateTrainingPatches.py:259
Definition: pyDM.py:400
rDispatcher
Definition: clfTreeModelTrain.py:377
trainingPointCount
Definition: clfTreeModelTrain.py:415