Coder Social home page Coder Social logo

shapelets / al-juarismi Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 880 KB

This is a chatbot to execute Khiva algorithms using natural language.

License: Mozilla Public License 2.0

Python 100.00%
analytics chatbot gpu-computing python timeseries voice-assistant

al-juarismi's People

Contributors

avilchess avatar ocnarf2070 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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

Forkers

ocnarf2070

al-juarismi's Issues

Algorithm to reduce the number points of points for a time series

Is your feature request related to a problem? Please describe.
We need to be able to reduce points from series that do not fit on a chart.

Describe the solution you'd like
I want to have a function that reduces the number of points from a time series while it keeps its original shape. I think that visvalingam algorithm is the ideal candidate.

i.e. reduced_series = reduce_points(original_series, max_points)

We need a function like the previous one, where we can reduce the number of points to max_points.

Describe alternatives you've considered
Other possible solutions are PIP, PLA or the well known ramer-douglas-pecker.
Additional context
It is just a tool for reducing the number of points from a series that needs to be plotted.

Aljuarismi breaks while loading a dataset

Describe the bug
If the user introduces an invalid path, the program breaks
To Reproduce
Steps to reproduce the behavior:

: load titanic2
Where is it located?
: /njkdnslanfgsaf/sadjndfhks

Expected behavior
The program informs the introduced path is invalid or it doesn´t exist

Desktop (please complete the following information):

  • OS: MacOS
  • 10.14

Show Workspace

We need an action to list all datasets which are loaded in the session.

Describe the solution you'd like
I want an order like "show workspace", "list workspace". This function has to iterate across all items stored in datasets and plot its information.

Program breaks while generating random dataset with X columns and Y rows

Describe the bug
The program breaks while generating a random dataset with x columns and Y olumns

To Reproduce

: generating random dataset with 10 columns and 100 points
DEBUG: generating random dataset with 10 columns and 100 points
Session path: projects/aljuaritmo/agent/sessions/q1o6PYVQiSki2OaYoMLyB9XtuKnQtYnU

{'rows': '', 'distribution': '', 'columns': 10.0, 'values': [100.0]}
====================
DEBUG: Query text: generating random dataset with 10 columns and 100 points
DEBUG: Detected intent: RandomDataset (confidence: 0.5699999928474426)

Creating the random dataset
Traceback (most recent call last):
  File "/Users/antonio.vilches/repositories/al-juarismi/main.py", line 107, in <module>
    main()
  File "/Users/antonio.vilches/repositories/al-juarismi/main.py", line 100, in main
    detect_intent_text(project_id, session_id, query, language_code)
  File "/Users/antonio.vilches/repositories/al-juarismi/main.py", line 64, in detect_intent_text
    current_dataset = al.create_dataset(parameters)
  File "/Users/antonio.vilches/repositories/al-juarismi/aljuarismi/datasets.py", line 80, in create_dataset
    tt['col' + str(n)] = pd.DataFrame(np.random.random_integers(values[0], values[1], num_rows),
IndexError: list index out of range```

**Expected behavior**
It should just create a random dataset with the provided description. if any parameter is missing, it should ask for it.

**Desktop (please complete the following information):**
 - OS: MacOs 10.14

Error while generating a random dataset

Describe the bug
Aljuarismo does not ask for the number of columns and rows. Surprisingly, it just generates
a column with 50 points.

To Reproduce
Steps to reproduce the behaviour:

: generate random dataset
: show it

Expected behaviour
It should ask for the number of columns and points. We assume all columns have the same number of points.

Desktop (please complete the following information):

  • OS: MacOs
  • Version10.14

Error while creating a random dataset, duplicated voice response.

Describe the bug
Every time we create a random dataset, we get a duplicated voice response, it makes no sense.

To Reproduce
: generate a random dataset with 6 columns

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS: MacOs 10.14

ADD README

There is an empty README.md file. It would be nice to add some content describing the purpose of this project and showing a list of characteristics. Later, we could add some usage examples.

Program breaks while trying to execute an action without a loaded dataset

Describe the bug
Aljuarismo breaks when trying to execute an action that requires a dataset and it hasn´t been loaded previously. We must check that condition and request a load of a dataset before the execution progress.

To Reproduce

: execute  kmeans
DEBUG: kmeans
Session path: projects/aljuaritmo/agent/sessions/cQvRW2O8PcAlIVdp3cZixUZZgi5NZAo7

{'number': '', 'Dataset': '', 'operation': 'kmeans'}
====================
Traceback (most recent call last):
DEBUG: Query text: kmeans
DEBUG: Detected intent: DoClustering (confidence: 0.4950000047683716)

  File "/Users/antonio.vilches/repositories/al-juarismi/main.py", line 107, in <module>
    main()
  File "/Users/antonio.vilches/repositories/al-juarismi/main.py", line 100, in main
    detect_intent_text(project_id, session_id, query, language_code)
  File "/Users/antonio.vilches/repositories/al-juarismi/main.py", line 79, in detect_intent_text
    al.do_clustering(parameters, current_dataset)
  File "/Users/antonio.vilches/repositories/al-juarismi/aljuarismi/operations.py", line 43, in do_clustering
    (centroids, labels) = al.kmean(dataset.values, parameters)
AttributeError: 'NoneType' object has no attribute 'values'

Expected behavior
It has to check the existence of a loaded dataset and pass this dataset to the execution command. If there is not a loaded dataset, it has to request the dataset to be loaded before progressing with the execution of the command.

Desktop (please complete the following information):

  • OS: MacOs 10.14

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.