Coder Social home page Coder Social logo

ts-mule's People

Contributors

duylamvo avatar merowech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ts-mule's Issues

Structure of documentation

  • Initial setup for sphinx
  • Installation
  • Quick Start Tutorial
  • Segmentation Tutorial
  • Evaluation Tutorial
  • Rewrite docstring in Modules. Apply restructedText in docstring
  • Prepare hooks for publishing to readthedocs.io

Note:

  • do not delete branch gh-pages -> this branch is reserved for building docs generated by sphinx

Clean examples -> and move to demo

The notebook test_segmentation examples should be moved to demo and renamed to -> demo_segmenation.

Examples/demo is a similar term, choose one

Data

add data to project

Docs preview

@merowech

I push a branch docs-build-test (do not merge this branch), which contains HTML built from docs. I cannot create github-pages from this repo, hence I ignore 'Settings/Pages'

To view it:

git checkout origin/doc-build-test
open docs/build/html/index.html

Currently, only scratch of tutorial, feel free to add or request.

Local Mean Evaluation

Local Mean Evaluation expects segments

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-43-0a14d03652c1> in <module>
      5                         eval_fn=metrics.mean_squared_error,
      6                         percentile=90,
----> 7                         delta=0.1
      8                         )
      9 scores

/c/Users/Udo/git/ts-mule/tsmule/xai/evaluation.py in analysis_relevance(self, X, y, R, predict_fn, eval_fn, replace_method, percentile, delta)
    138                             percentile=percentile,
    139                             )
--> 140         X_percentile = np.array(list(X_percentile))
    141 
    142         X_random = self.perturb(X, R, 

/c/Users/Udo/git/ts-mule/tsmule/xai/evaluation.py in perturb(self, X, R, replace_method, percentile, shuffle, delta)
    108             else:
    109                 m = self.mask_percentile(r, percentile)
--> 110             yield self._perturb(x, m, replace_method=replace_method)
    111 
    112 

/c/Users/Udo/git/ts-mule/tsmule/xai/evaluation.py in _perturb(x, m, replace_method)
     79         """
     80         repl_fn = getattr(repl, replace_method)
---> 81         r = repl_fn(x)
     82         assert x.shape == m.shape == r.shape
     83         z = x * m + r * (1 - m)

TypeError: local_mean() missing 1 required positional argument: 'segments'

Prepare environment for tsmule.readthedocs.io

This task is reserved after the repo is published

We decide to use readthedocs as a host for documentation, instead of using GitHub pages (administrating limitation)

  • Setup environment.yaml for readthedocs.io
  • Prepare pre-commit hook if necessary
  • Create and upload to tsmule.readthedocs.io

src/tsmule structure is unreachable by tests

@merowech
The structure of src/tsmule should be renamed to tsmule or src only because

  • easy to create a package later, and upload it to pypi.org

Another way is to put init.py in src
which way do you prefer?

Currently I have an issue with running tests due to this issue

Pretrained models and testset

@merowech Could you please reupload the models?
I am writing the quick-start documents and would like to reuse our pre-trained models to demo and show the usage.

  • Reupload pre-trained models

I suggest a structure as we had before :
examples/<data-set-name>/<name_model>.h5
examples/<data-set-name>/<name_testset>.something

In my docs tutorial-> I will

  1. load model from our repo (remote/local).
  2. load data set from our repo (remote/local).
  3. show how we use tsmule to generate explanations
  4. show how we use tsmule to evaluate the explanation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.