Skip to content

Commit

Permalink
0.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioburdisso committed Nov 27, 2019
1 parent a17725f commit ce25d0a
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 5 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All notable changes to PySS3 will be documented here.

## [0.3.9] 2019-11-27

### Added
- Live Test: layout updated.
- PySS3 Command Line: ``frange`` function added as an alias of ``r`` for the ``grid_search`` command.

### Fixed
- PySS3 Command Line: live_test always lunch the server with no documents (even when before "live_test a/path")
- Live Test:sentences starting with "unknown" token were not included in the "Advanced" interactive chart


## [0.3.8] 2019-11-25

### Fixed
Expand Down
15 changes: 14 additions & 1 deletion docs/about/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,27 @@ Change Log

All notable changes to PySS3 will be documented here.

[0.3.9] 2019-11-27
==================

Added
-----
- Live Test: layout updated.
- PySS3 Command Line: ``frange`` function added as an alias of ``r`` for the ``grid_search`` command.

Fixed
-----
- PySS3 Command Line: live_test always lunch the server with no documents (even when before "live_test a/path")
- Live Test:sentences starting with "unknown" token were not included in the "Advanced" interactive chart

[0.3.8] 2019-11-25
==================

Fixed
-----
- Server: fixed bug that stopped the server when receiving arbitrary bytes (not utf-8 strings)
- PySS3 Command Line: fixed bug when loading live_test with a non existing path
- Live Test: now the user can select single letter words (and are also included in the "advanced" live chart)
- Live Test: now the user can select one-letter words (and are also included in the "advanced" live chart)


[0.3.7] 2019-11-22
Expand Down
2 changes: 1 addition & 1 deletion docs/user_guide/ss3-classifier.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Additionally, :math:`\overrightarrow{gv}` is the vectorial version of :math:`gv`
\overrightarrow{gv}(apple) &= (0, 0.8, 0.4, 0.75)\\
\overrightarrow{gv}(the) &= (0, 0, 0, 0)
These vectors are called the **confidence vectors** (:math:`cv`). Thus, in this example :math:`(0, 0.8, 0.4, 0.75)` is the *confidence vector* of the word "apple", in which the first position corresponds to "travel", the second to "technology", and so on.
These vectors are called **confidence vectors** (:math:`cv`). Thus, in this example :math:`(0, 0.8, 0.4, 0.75)` is the *confidence vector* of the word "apple", in which the first position corresponds to "travel", the second to "technology", and so on.



Expand Down
2 changes: 1 addition & 1 deletion pyss3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from functools import reduce
from six.moves import xrange

__version__ = "0.3.8"
__version__ = "0.3.9"

ENCODING = "utf-8"

Expand Down
6 changes: 5 additions & 1 deletion pyss3/cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@
RESULTS_HISTORY = None
CLF = None
F_PRECISION = 4
r = linspace # an alias for grid_search command

frange = linspace # an alias for grid_search command
r = frange # an alias for grid_search command


try:
Expand Down Expand Up @@ -1576,6 +1578,8 @@ def do_live_test(self, args):
except OSError:
Print.error(ERROR_NSD % test_path)
return
else:
Server.set_testset([], [])

Server.serve(CLF, quiet=not verbose)

Expand Down
2 changes: 1 addition & 1 deletion pyss3/resources/visual_classifier/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ app.controller("mainCtrl", function($scope) {
var sent = par.sents[is];
sent.index = senti++;

if (sent.words[0].token){
if (sent.words.length > 1 || sent.words[0].token){
if (crow_sents)
crow_sents.add(sent.cv);
else
Expand Down
2 changes: 2 additions & 0 deletions pyss3/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ def __do_get_doc__(sock, file):
def __clear_testset__():
"""Clear server's test documents."""
Server.__docs__ = RecursiveDefaultDict()
Server.__test_path__ = None
Server.__folder_label__ = None
Server.__x_test__ = None

@staticmethod
Expand Down

0 comments on commit ce25d0a

Please sign in to comment.