Coder Social home page Coder Social logo

d2s-tools's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

d2s-tools's Issues

HTML Reporter: Graph coloring sometimes doesn't work

To reproduce: run the iterate-test workflow, open the report for the multiplier module. Set the horizontal axis and color to i:second. Dots with the same i:second have different colors.

When I log the colors to the JS console, everything looks alright, so the problem may be in the plotting code.

Repeat key

The repeat key for modules has not yet been implemented.

non-public constructors on modules

Currently, when a module has a non-public constructor, the workflow fails with a mysterious error. This should be checked beforehand, and give a nicer error.

Dynamically add domains

Search the classpath for classes tagged Domain, and add them automatically (see Global.static)

Greedy implementations of Module state methods

The methods rank(), ready() and finished() in AbstractModule have a greedy implementation which means that every method call walks through the whole workflow multiple times. They should cache their states, if this turns out to be a performance problem.

Detect cycles after workflow parsing.

My guess is that at the moment a workflow with a cyclic dependency fails by causing an infinite recursion in the rank method.

We should check during or after parsing whether the workflow has cycles and throw a nice supportive exception.

Module shorthand

For quick modules, with a single output, it would be nice to be able to use a shorthand. Something like the following:

module:
  name: big complex module
  inputs:
    dataset: smooth(csv('C:\data\dataset.csv), 0.3)

Which would be equivalent to

- module:
    name: csv
    inputs:
      file: 'C:\data\data.csv'

- module:
    name: smooth
    inputs:
      data: csv.result
      smoothing factor: 0.3

- module:
    name: big complex module
    inputs:
      dataset: smooth.result

This should be thought out carefully on the design level before implementation.

Syntactic sugar for small workflow

For a small workflow, we should allow the user to start with the list of modules directly in the yaml file.

Specifically, the keys workflow, name and modules should be made optional.

Work out the logic for input/output conversions

Currently, we tend to assume that all variable have a JavaType DataType. We need to work out exactly how the platform should handle types in different languages and how these should be converted.

List of references in module description

Currently providing a set of references as an input in the workflow description is not supported (only raw values).

We should even be able to create a mixed list, with some raw values, and some references. This will be tricky.

Static functions as modules

Consider the following way of describing modules:

@Module(name="Adder", description="Adds two numbers together")
public class Adder
{
    @Main
    public static add(
        @In(name="first") int first,
        @In(name="second") int second)
    {
        return first + second;
    }
}

This is a concise way of writing small modules, but it's tricky to implement. This should be thought out carefully before implementation.

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.