ryshoooo / treemodel Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Numpy strings of any lengths can be represented as '<U', i.e the longest_string parameter is not necessary.
NB: This will be very helpful in retyping and uniformization of trees.
Find a consistent way to apply a new schema to a built tree row and be able to safely transform old values to the new schema values.
The idea is having trees T1 and T2, then:
This might heavily influence how method mul is defined, i.e. link to issue #23
Currently the child nodes do not have attribute level, which should be passed on when they are being gathered via forks.
This task is to allow level attribute at child nodes as well. It is essential for union method.
As a consequence, the intersection and union methods were actually with bugs, fix them as well.
Uniformize by:
The idea is that the user can write user-defined python function, which is then executed on each TreeRow and results in a new value with specified DataType.
Ex.
def multiply(a, b):
return a * b
mul_udf = TreeUDF(multiply, FloatDataType())
tree_dataset['base/new_feature'] = mul_udf('base/old_feature_1', 'base/old_feature_2')
The current implementation of the intersection (mul in tree schema and fork node) matches from top to bottom, i.e. if the top doesn't match, nothing in the branches match.
Should this be the case or not?
What if there is a equivalent branch in other, which equals to the tree in self or vice versa? Should that be included? How do Arrays and Lists of trees fit into this concept?
Currently to initialize TreeDataType input TreeSchema is necessary, however the TreeDataType is not utilizing any of the schema possibilities.
Furthermore schemas should be only essential in datasets, not in data types, since datatypes are building blocks of schemas.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.