All Downloads are FREE. Search and download functionalities are using the official Maven repository.

deepnetts.util.CsvFormat Maven / Gradle / Ivy

/**  
 *  DeepNetts is pure Java Deep Learning Library with support for Backpropagation 
 *  based learning and image recognition.
 * 
 *  Copyright (C) 2017  Zoran Sevarac 
 *
 *  This file is part of DeepNetts.
 *
 *  DeepNetts is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see .package deepnetts.core;
 */

package deepnetts.util;

import java.util.Arrays;

public class CsvFormat {
    private String delimiter;
    private boolean hasHeader;
    private String[] columnNames;
    private ColumnType[] columnTypes;
    private int numColumns;
    
    // todo add numColumns
    public String getDelimiter() {
        return delimiter;
    }

    public void setDelimiter(String delimiter) {
        this.delimiter = delimiter;
    }

    public boolean isHasHeader() {
        return hasHeader;
    }

    public void setHasHeader(boolean hasHeader) {
        this.hasHeader = hasHeader;
    }

    public String[] getColumnNames() {
        return columnNames;
    }

    public void setColumnNames(String[] columnNames) {
        this.columnNames = columnNames;
        this.numColumns = columnNames.length;
    }

    public ColumnType[] getColumnTypes() {
        return columnTypes;
    }

    public void setColumnTypes(ColumnType[] columnTypes) {
        this.columnTypes = columnTypes;
    }

    public int getNumColumns() {
        return numColumns;
    }
    
    @Override
    public String toString() {
        return "CsvFormat{" + "delimiter=" + delimiter + ", hasHeader=" + hasHeader + ", columnNames=" + Arrays.toString(columnNames) + ", columnTypes=" + Arrays.toString(columnTypes) + '}';
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy