나는 machine learning book, written by Boštjan Kaluža, Pact publishing을 연구 중이다.Weka 코드 이해
다음은 코드의 간단한 정의입니다.
가열 및 냉각 부하에게 이러한 표면 벽, 지붕 공간, 높이, 뿌옇게되는 영역으로서 그 구조 특성들에 기초하여 건물의 요구 조사 목적 코드와 compactness.The 연구자 사용 시뮬레이터를 설계 12 다른 집 구성을 변경하면서 18 빌딩 특성. 우리의 첫 번째 목표는 각 건물의 특성 변수 인 의 영향을 체계적으로 분석하고, 해당 변수가 인 경우 난방 또는 냉방 부하입니다. 추정을 위해 선형 회귀 모델을 사용합니다. 선형 회귀 모델은 입력 변수를 선형 적으로 결합하여 부하를 추정하는 함수 을 구성했습니다. 우리는 "제 2 타겟 부하를 가변 냉각"삭제 한 코드
public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter the path of the data file:"); String s = br.readLine(); // load CSV CSVLoader loader = new CSVLoader(); loader.setSource(new File(s)); Instances data = loader.getDataSet(); //We will start with learning a model for heating load by setting the class //attribute at the feature position data.setClassIndex(data.numAttributes() - 1); //The second target variable—cooling load—can be now removed: Remove remove = new Remove(); remove.setOptions(new String[]{"-R", data.numAttributes()+""}); remove.setInputFormat(data); data = Filter.useFilter(data, remove); data.setClassIndex(data.numAttributes() - 1); LinearRegression model = new LinearRegression(); model.buildClassifier(data); System.out.println(model); }
코드이다
아래 표는 우리가 분석 데이터를 도시 . 제가 물어보고 싶은 질문은, 왜 우리가 이것을 했습니까? 미리 감사드립니다.