Skip to content

Commit e3e8c33

Browse files
committed
removed use_predictions option from classifiers
1 parent 141d9ad commit e3e8c33

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

datasets/bathy/package/BathyCoastnetClassifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ bool BathyCoastnetClassifier::run (GeoDataFrame* dataframe)
128128
.h5_index = 0,
129129
.x = x_atc[i],
130130
.z = geoid_corr_h[i],
131-
.cls = static_cast<size_t>(class_ph[i]),
131+
.cls = 0,
132132
.prediction = BathyFields::UNCLASSIFIED,
133133
.surface_elevation = 0.0,
134134
.bathy_elevation = 0.0
@@ -144,7 +144,7 @@ bool BathyCoastnetClassifier::run (GeoDataFrame* dataframe)
144144

145145
// Run classification
146146
const string model_filename = FString("%s/%s", ContainerRunner::HOST_DIRECTORY, args.model.value.c_str()).c_str();
147-
const auto results = classify (args.verbose, samples, model_filename, args.usePredictions);
147+
const auto results = classify (args.verbose, samples, model_filename, false);
148148

149149
// Update extents
150150
for(size_t i = 0; i < number_of_samples; i++)

datasets/bathy/package/BathyFields.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,12 @@ struct CoastnetFields: public FieldDictionary
122122
FieldElement<string> model {COASTNET_MODEL};
123123
FieldElement<bool> setClass {true};
124124
FieldElement<bool> setSurface {true};
125-
FieldElement<bool> usePredictions {false};
126125
FieldElement<bool> verbose {true};
127126

128127
CoastnetFields(void):
129128
FieldDictionary({ {"model", &model},
130129
{"set_class", &setClass},
131130
{"set_surface", &setSurface},
132-
{"use_predictions", &usePredictions},
133131
{"verbose", &verbose} }) {
134132
};
135133

@@ -143,13 +141,11 @@ struct OpenOceansPPFields: public FieldDictionary
143141
{
144142
FieldElement<bool> setClass {false};
145143
FieldElement<bool> setSurface {false};
146-
FieldElement<bool> usePredictions {false};
147144
FieldElement<bool> verbose {true};
148145

149146
OpenOceansPPFields(void):
150147
FieldDictionary({ {"set_class", &setClass},
151148
{"set_surface", &setSurface},
152-
{"use_predictions", &usePredictions},
153149
{"verbose", &verbose} }) {};
154150

155151
virtual ~OpenOceansPPFields(void) override = default;

datasets/bathy/package/BathyOpenOceansPPClassifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ bool BathyOpenOceansPPClassifier::run (GeoDataFrame* dataframe)
124124
.x = x_atc[i],
125125
.z = geoid_corr_h[i],
126126
.cls = 0,
127-
.prediction = static_cast<unsigned>(class_ph[i]),
127+
.prediction = BathyFields::UNCLASSIFIED,
128128
.surface_elevation = 0.0,
129129
.bathy_elevation = 0.0
130130
};
@@ -139,7 +139,7 @@ bool BathyOpenOceansPPClassifier::run (GeoDataFrame* dataframe)
139139

140140
// Run classification
141141
const oopp::params params;
142-
samples = classify (samples, params, args.usePredictions);
142+
samples = classify (samples, params, false);
143143

144144
// Update extents
145145
for(size_t i = 0; i < number_of_samples; i++)

0 commit comments

Comments
 (0)