Weka 中的 Jython 入門

如何在 weka 中設定 Jython

  1. 從 Weka Package manager 安裝 JythonJFreeChart 庫;

  2. 轉到主目錄的終端,輸入 nano .bash_profile

  3. .bash_profile 裡面,新增一行程式碼如下

    export Weka_Data=User/Documents/Directory/Of/Your/Data

  4. 儲存並退出

  5. 在終端內執行 source .bash_profile

然後,重新啟動 Weka,轉到 tools 並單擊 Jython console,你可以嘗試上面的示例