Coder Social home page Coder Social logo

prepnet's People

Contributors

elda27 avatar

Watchers

 avatar  avatar

prepnet's Issues

Some convertesr can't reuse

The implementation of some converters can't reuse.
The example shows the following.

input1 = np.array([
    'Tom',
    'Becky',
    'Tom',
    'Becky',
    'Ann',
])
converter = prepnet.OrdinalConverter()
result = converter.encode(input1)
print(result) # Display text should be "[0, 1, 0, 1, 2]"

input2 = np.array([
    'Tom',
    'Tom',
    'Ann',
])
result = converter.encode(inputs)
print(result) # Display text should be "[0, 0, 2]" but actual "[0, 0, 1]"

Example is not completely

Need enhance the examples

  • Example1: Directly use converters.
  • Example2: Functional based converters
  • Example3: Column wise based converters (using FrameConverter)

Executor and FrameConverter implementation is complicated.

Now the master branch is very complicated due to FrameConverterContext and Asynchronous Generator (encode_async and decode_async).
Implementations should be more simple for extensions.

These are rethinking implementation.

  • Executor will split ColumnExecutor and FrameExecutor.
  • Remove encode_async and decode_async
  • Remove executor dependency such as FrameConverterContext.
  • FunctionalContext should use above executors.
  • Some tests change for above changes.

efc4810

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.