{"action":"opened","issue":{"url":"https://api.github.com/repos/haifengl/smile/issues/82","repository_url":"https://api.github.com/repos/haifengl/smile","labels_url":"https://api.github.com/repos/haifengl/smile/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/haifengl/smile/issues/82/comments","events_url":"https://api.github.com/repos/haifengl/smile/issues/82/events","html_url":"https://github.com/haifengl/smile/issues/82","id":156215520,"number":82,"title":"Getting Started Question with non-static error","user":{"login":"pacozaa","id":3154089,"avatar_url":"https://avatars.githubusercontent.com/u/3154089?v=3","gravatar_id":"","url":"https://api.github.com/users/pacozaa","html_url":"https://github.com/pacozaa","followers_url":"https://api.github.com/users/pacozaa/followers","following_url":"https://api.github.com/users/pacozaa/following{/other_user}","gists_url":"https://api.github.com/users/pacozaa/gists{/gist_id}","starred_url":"https://api.github.com/users/pacozaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pacozaa/subscriptions","organizations_url":"https://api.github.com/users/pacozaa/orgs","repos_url":"https://api.github.com/users/pacozaa/repos","events_url":"https://api.github.com/users/pacozaa/events{/privacy}","received_events_url":"https://api.github.com/users/pacozaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-23T07:25:29Z","updated_at":"2016-05-23T07:25:29Z","closed_at":null,"body":"1. \r\n```java\r\npublic static void main(String[] args) throws IOException, ParseException {\r\n        ArffParser arffParser = new ArffParser();\r\n        arffParser.setResponseIndex(4);\r\n        AttributeDataset weather = arffParser.parse(this.getClass().getResourceAsStream(\"/smile/data/weka/weather.nominal.arff\"));\r\n        double[][] x = weather.toArray(new double[weather.size()][]);\r\n        int[] y = weather.toArray(new int[weather.size()]);\r\n        AdaBoost forest = new AdaBoost(weather.attributes(), x, y, 200, 4);\r\n    }\r\n```\r\nHello,\r\n\r\nI just get started with smile in Netbeans!\r\n\r\nFrom above code I got the error at line  `AttributeDataset weather = arffParser.parse(this.getClass().getResourceAsStream(\"/smile/data/weka/weather.nominal.arff\"));`\r\n\r\nlike this \r\n\r\n> Error : non-static variable this cannot be referenced from a static context\r\n\r\nHow can I solve this? \r\n\r\n2. Do you have some getting start example code? I would like to get familiar with smile fast. It looks like snippet in README.md is not enough for me. What do you think?"}}
{"actor":{"display_login":"pacozaa"}}