This is the Machine-Learning-Pipeline for the bachelor thesis project "Recognizing defects in Java code automatically".
Python 3.5 with scikit-learn and SQLAlchemy is required. These libraries can easily be installed with Anaconda.
For Windows:
- install Anaconda
- Download it from https://www.continuum.io/downloads
- Choose Python 3.5 Windows 64-Bit Graphical Installer
- Setup environment
-
Enter into cmd (Windows):
-
conda create --name ml scikit-learn sqlalchemy pymysql matplotlib
activate ml
pip install terminaltables
- Configure PyCharm:
- Open settings (CTRL + ALT + S)
- Project: ML-Pipeline -> Project Interpreter
- Click the cog wheel next to the interpreter listbox -> Add Local
- Choose the Python.exe of your new environment
- E.g.
C:\Anaconda3\envs\ml\python.exe
- E.g.
- Now all packages like SQLAlchemy, scikit-learn, numpy etc. should be listed.
- Be patient, PyCharm needs some time to rebuild its indexes -> In the lower right corner PyCharm tells you which processes are running.
Die Machine-Learning-Pipeline für das Bachelorarbeitsprojekt "Fehler in Java Code automatisch erkennen".
Es wird Python 3.5 mit Scikit-learn und SQLAlchemy benötigt. Am einfachsten geht die Installation mit Anaconda:
- Anaconda installieren
- Downloaden von https://www.continuum.io/downloads
- Python 3.5 Windows 64-Bit Graphical Installer wählen
- Environment aufsetzen:
-
In der Kommandozeile (Windows):
-
conda create --name ml scikit-learn sqlalchemy pymysql matplotlib
activate ml
pip install terminaltables
- PyCharm konfigurieren:
- Settings öffnen (CTRL + ALT + S)
- Project: ML-Pipeline -> Project Interpreter
- Auf Zahnrad neben Interpreter Listbox klicken -> Add Local
- Python.exe des neuen Environments auswählen
- Z.B.
C:\Anaconda3\envs\ml\python.exe
- Z.B.
- Nun sollten alle Packages wie SQLAlchemy, scikit-learn, numpy etc. aufgelistet sein.
- Dann geduldig sein, PyCharm hat eine Weile weil es die Indizes und so neu bilden muss -> Rechts unten in PyCharm steht, was für Prozesse am laufen sind.