private void initializeDataTransformationErrorsCount ( GenModel model ) { String responseColumnName = model . isSupervised ( ) ? model . getResponseName ( ) : null ; dataTransformationErrorsCountPerColumn = new ConcurrentHashMap <> ( ) ; for ( String column : model . getNames ( ) ) { // Do not perform check for response column if the model is unsupervised if ( ! model . isSupervised ( ) || ! column . equals ( responseColumnName ) ) { dataTransformationErrorsCountPerColumn . put ( column , new AtomicLong ( ) ) ; } } dataTransformationErrorsCountPerColumn = Collections . unmodifiableMap ( dataTransformationErrorsCountPerColumn ) ; }
Initializes the map of data transformation errors for each column that is not related to response variable excluding response column . The map is initialized as unmodifiable and thread - safe .