Commit Graph

168 Commits (b768b215c55874d104a95f49cbea32360fcdf96e)

Author SHA1 Message Date
J. Fernando Sánchez 738da490db Add test to command line 7 years ago
J. Fernando Sánchez d29c42fd2e Log easy and test serializable 7 years ago
J. Fernando Sánchez 23c88d0acc Improve error handling 7 years ago
J. Fernando Sánchez dcaaa591b7 Improve requests patching 7 years ago
J. Fernando Sánchez 15ab5f4c25 Add Entity 7 years ago
J. Fernando Sánchez 92189822d8 Change Box plugin to mimic a sklearn classifier 7 years ago
J. Fernando Sánchez 081078ddd6 Fix pypi
Remove standard aliases in __init__.py
7 years ago
J. Fernando Sánchez 1087692de2 Add sklearn
* Add sklearn example
* Fix test_case
* Add SenpyClientUse docs

a.k.a. The wise men edition
7 years ago
J. Fernando Sánchez 3e2b8baeb2 Last batch of big changes
* Add Box plugin (i.e. black box)
* Add SentimentBox, EmotionBox and MappingMixin
* Refactored CustomDict
7 years ago
J. Fernando Sánchez 21a5a3f201 Macro commit
* Fixed Options for extra_params in UI
* Enhanced meta-programming for models
* Plugins can be imported from a python file if they're named
`senpy_<whatever>.py>` (no need for `.senpy` anymore!)
* Add docstings and tests to most plugins
* Read plugin description from the docstring
* Refactor code to get rid of unnecessary `.senpy`s
* Load models, plugins and utils into the main namespace (see __init__.py)
* Enhanced plugin development/experience with utils (easy_test, easy_serve)
* Fix bug in check_template that wouldn't check objects
* Make model defaults a private variable
* Add option to list loaded plugins in CLI
* Update docs
7 years ago
J. Fernando Sánchez abd401f863 Enhance plugin metaclass
* Change names of plugins to avoid repetitions (we may have to revert this)
* Make subprocess log private
7 years ago
J. Fernando Sánchez bfc588a915 Several fixes
* Refactored BaseModel for efficiency
* Added plugin metaclass to keep track of plugin types
* Moved plugins to examples dir (in a previous commit)
* Simplified validation in parse_params
* Added convenience methods to mock requests in tests
* Changed help schema to use `.valid_parameters` instead of `.parameters`,
which was used in results to show parameters provided by the user.
* Improved UI
    * Added basic parameters
    * Fixed bugs in parameter handling
    * Refactored and cleaned code
7 years ago
J. Fernando Sánchez f93eed2cf5 Fix bug in UI
Extra parameters of the plugins didn't get a box all the time.
7 years ago
J. Fernando Sánchez 0204e0b8e9 Several changes
* Simplified setattr
* Added loading attributes in class
* Added ability to specify failing test cases in plugins
7 years ago
J. Fernando Sánchez aa54d1c9c8 Fix bugs in Web UI parameters
* Fixes #49
* Slightly cleaner javascript code
7 years ago
J. Fernando Sánchez 869c00f709 Merge branch 'split-fix'
Fix #48
7 years ago
militarpancho 55be0e57da Fix #48 7 years ago
J. Fernando Sánchez 778746c5e8 Added data folder configuration
Closes #46
7 years ago
J. Fernando Sánchez 19278d0acd Use the right version of PIP (py2/py3)
Closes senpy/senpy#47
7 years ago
J. Fernando Sánchez e8413fb645 Accept string inputs if no options are available
The javascript code should be cleaned up at some point!
7 years ago
J. Fernando Sánchez 3e3f5555ff Fixed py2 problems and other improvements
We've changed the way plugins are activated, and removed the notion of
deactivated plugins.
Now plugins activate asynchronously.
When calling a plugin, it will be activated if it wasn't, and the call will wait
for the plugin to be fully activated.
7 years ago
J. Fernando Sánchez 7aa91d1d60 Fixed FSRE dimension names to match ontology
http://www.gsi.dit.upm.es/ontologies/onyx/vocabularies/emotionml/ns
7 years ago
drevicko 2480ec310e bump version number in ekman2vad.senpy 7 years ago
drevicko 9b956b2358 uses emotionML vocab names for VAD dimensions 7 years ago
drevicko 83ddd5e990 add neutralValue to fsre conversion senpy file 7 years ago
drevicko d77d01c3e1 Adds neutral value to conversion senpy files 7 years ago
drevicko f6271495c1 use emoionml names for fsre and pad dimensions
This lines up the names in the conversion plugins with the [emotionML suggested vocab](https://www.w3.org/TR/emotion-voc/#dimensions).

emoml has different names for the 4-dimensional fsre scheme and the 3-dimensional vad scheme, which this pull request has added.

I've added the "unpredictability" dimension and mapped big6:surprise to it's maximum value. The assumption is that surprise varies between 5 and 10 to be in line with the other dimensions (no such thing as negative surprise, so no values less than 5). I see that arousal also has all values >5 (so no negative arousal). Ideally, surprise mappings for V, A and D should be calculated empirically - I think there'll be some arousal and possibly slightly lowered dominance.

I wonder if we should use another colon in the emoml names, eg: "emoml:fsredim:valence" or "emoml:big6:happiness", since the [emoml suggested vocab](https://www.w3.org/TR/emotion-voc/xml) only specifies names like "happiness" in a category "big6" (ie: it's hard to know which is the category in "big6happiness").
We'd have to go through the example plugins and make sure they also conform...

open to discussion on this btw...

ps: apologies for multiple changes in this one pr..
7 years ago
drevicko 1cccd9d5cb Minor change in description text 7 years ago
J. Fernando Sánchez a243f68bfc WIP simpler pipeline 7 years ago
J. Fernando Sánchez fca0ac00c4 Merge branch '38-json-serialization-problem-with-sets' 7 years ago
J. Fernando Sánchez 9a2932b569 Merge branch '39-plugin-tests-missing' 7 years ago
J. Fernando Sánchez 9acee50837 Merge branch 'failed-examples' 7 years ago
J. Fernando Sánchez 85aef3d15f Improved shelf tests
Refactored template tests
7 years ago
J. Fernando Sánchez b6f00385ab Fixed test for failed validation
Note that the schema currently supports both string and object analysis in the
"analysis" field of a result.
7 years ago
J. Fernando Sánchez 8c5f894843 Fixed turtle outformat in playground 7 years ago
J. Fernando Sánchez 9870391088 Run tests from gsiupm/senpy 7 years ago
militarpancho ad2051307a Grouped plugins by plugin Type with and optgroup. This ought to close #42 7 years ago
militarpancho 7fd16a17fb Use the exported values to generate the form in the playground Issue #42 7 years ago
militarpancho 7547fc49af Change params dict structure. #42 7 years ago
militarpancho 7f44f9e85d Fix changes in blueprints api for showing help 7 years ago
militarpancho aaad5e8f2b Add 'help' as a parameter to the API, with two options: "true" and "false". It is false by default.
Modify all the /api blueprint to export the list of available params
7 years ago
J. Fernando Sánchez 4d7e8e7589 Added tests for all "discoverable" plugins
Closes #39
7 years ago
J. Fernando Sánchez 8e4578dc25 Closes #40 7 years ago
J. Fernando Sánchez 24c97256e8 Added serialization of sets 7 years ago
J. Fernando Sánchez c9bc485535 Merge branch '36-estimate-vad' 7 years ago
J. Fernando Sánchez 6d7575bbcd Merge branch '35-timeout-and-blocking-requests' 7 years ago
J. Fernando Sánchez 852bcc72ba Better centroid conversion
Also added **simple** tests for backward and forward conversion.
In future versions we should add thorough tests.

Should close gsi-upm/senpy#31
7 years ago
J. Fernando Sánchez bf5ed1bd7d Merge remote-tracking branch 'drevicko/patch-6' 7 years ago
J. Fernando Sánchez 00da75153a Change conversion to Euclidean distance
* Added neutral point (if present)

Closes !gsi-upm/senpy#37 (Ian's)
7 years ago
J. Fernando Sánchez fa082e11e7 Use flask's server by default
Using this server in production is discouraged, but to implement a
proper asynchronous server with tornado/gevent every blocking call would
have to be converted to a non-blocking call.

Failing to do so causes deadlocks like senpy/senpy#35

For now, it is easier to just use the default server.
7 years ago