Alex head by the very talented Ulvra
Alex is a test program, to research ways of preference learning algorithms to communicate with their developers.
The code is always cleaned up with rubocop, but can be messy at some times, as idea flow is priotized over immediate code quality.
Currently, there is a method tested, that determines tags, that are most influential, for a decision and highlights those.
Download this gem or clone it into a directory to use.
A PostgreSQL server must be setup and a database called 'alex' needs to be present.
Please then execute $ psql -f sql/alex.sql alex
to populate the database.
The needed SQL file can be downloaded under https://mootech.eu/sql/alex.sql.
You can reset everything by simply running the above command again. It also contains a lot of data, so execution might take some time.
Required that you're in the project's root directory:
$ bin/alex train
Will train the network, it is pre-trained already.
$ bin/alex show
Shows a post, Alex thinks the user will like, and gives additional information on why something was chosen.
$ bin/alex voteup [post id] [post_id] ...
$ bin/alex votedown [post id] [post_id] ...
Add another rating to Alex's list of ratings. This is used for
training/learning.
$ bin/alex interactive
Spawns a pseudo shell where IDs can be specified and analyzed.
Follow me on Twitter, if you're brave enough.
Copyright 2018 ©️ Maxine Michalski
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request