Comments (9)
Maybe mpld3 can help?
from agentmet4fof.
For the matplotlib:
- branch out the options to choose 1. or 2.
- commit the progress with mpld3 and laeve it as draft, so that it will be tracked
from agentmet4fof.
For the scenarios of custom plots:
- Document the options of 1. sending plot figures, or 2. plot within the monitor agents' memory
- maintain these two options
- write tutorials on these
from agentmet4fof.
Thanks for improving the clarity!
from agentmet4fof.
There are 3 ways to include matplotlib figures in the web dashboard powered by plotly:
- convert to static image (existing method: easiest and exact but no interactivity)
- convert to plotly figure via tls.mpl_to_plotly (fully interactive, but not all matplotlib figures are compatible such as boxplots, piecharts,..)
- mpld3. This requires some hack to work with current dashboard, but making good progress.. (sufficient interactivity, wide compatibility with most matplotlib figures)
perhaps then, there should be an option for users to switch from 1 method to the other.
from agentmet4fof.
In agentMET4FOF context, there are probably 3 scenarios which custom plots could take place:
- Send plot figures from data processing/streaming agents to Monitor agent
- Plotting function supplied with Monitor agent's init_parameters, and actual plotting is based on Monitor agent's
memory
data - Offline - ML experiments for comparing results of ML pipelines performances/outputs
from agentmet4fof.
For the matplotlib:
* branch out the options to choose 1. or 2. * commit the progress with mpld3 and laeve it as draft, so that it will be tracked
I would describe my suggestion with the words:
- push the according branch (dealing with all three options, as far as I understood)
- create a Pull Request for this branch
- either revert the commits introducing
mpld3
if they were confined to the third option or just remove the according snippets from the code in one commit with a self-explaining message telling clearly when we dropped the changes related to its use - merge the Pull Request after properly reviewing the left-overs and desired changes
This way we can properly proceed with this issue, resolve it and we do not loose the first try of introducing mpld3
, which was promising.
from agentmet4fof.
An example of how to provide custom plot of plotly is provided here:
https://github.com/bangxiangyong/agentMET4FOF/blob/develop/examples/custom_dashboard.py
from agentmet4fof.
addressed here, within the send_plot
function of base agent class:
https://github.com/bangxiangyong/agentMET4FOF/blob/custom_plots/agentMET4FOF/agents.py
from agentmet4fof.
Related Issues (20)
- There seems to be a bug with an occurence of self.value_unc instead of self._value_unc in metrological_streams
- Restructure the agents' modules to keep the namespaces from getting cluttered and the modules from getting huge
- Align cosine and sine default frequencies
- Remove legacy self.memory from metrological monitor agent
- Properly document input_data_maxlen and output_data_maxlen in metrological_agents
- Include refactoring and performance types in the CONTRIBUTING.md HOT 1
- Provide key facts for the new project homepage in bullet point style HOT 5
- Consider changing server listening on localhost i.e. 127.0.0.1 to listening on all interfaces i.e. 0.0.0.0 HOT 4
- Consider moving tutorials into namespace agentMET4FOF
- Incorporate valuable changes from NPL's code
- Consider including the agentMET4FOF version number in the start up message, that gets printed out on the console
- Labeling of agents HOT 1
- Make sure Mesa does not get tested against naming an agent just with a space HOT 1
- Consider making data sources and generator functions consistent in their default return types
- Improve debugging documentation
- Consider refactoring of AgentMet4FoF to an abstract base class
- Tutorials with OSBrain as backend don't run with PyCharm on Windows HOT 5
- Find a way to log data processing in pipelines
- This site canβt be reached127.0.0.1 refused to connect. HOT 16
- Set data source to handle pd.DataFrame correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agentmet4fof.