pomodoren / comorbid-graphs Goto Github PK
View Code? Open in Web Editor NEWSide by side comparison of disorders based on comorbidity factors for clinical psychology.
License: MIT License
Side by side comparison of disorders based on comorbidity factors for clinical psychology.
License: MIT License
Explore the best text metrics for creation of landscape.
cg_res1 = cg.simple_search('pain', ComorbidGraphNode)
cg_res2 = cg.advanced_search(
'ache inc_ancestor:nervous system symptom exc_ancestor:pain',
node_type=ComorbidGraphNode
)
subgraph_list = [cg_res1, cg_res2]
resulting_merged_subgraph = cg.merge(subgraph_list=subgraph_list)
resulting_merged_subgraph.explore()
Recursive extraction of wikipedia categories together with lists.
Store the info as:
name: page_name
url: wikipedia.org/page_name
Introduction of multiparents should allow the graph properties.
Closed dependencies should allow for checks in this tree or not when loading from tree.
# closed-dependencies: checks whether all parents are in the hierarchy
# if not throws error
ComorbidGraph.load_yaml('graph.yaml', closed_dependencies=True)
To be able to do this kind of change, I should allow multiparent actions for each main functionality.
For this we can use the existing scoring procedure at comorbid-labs which was relatively successful.
analyse_from_bow
- from bag of wordsanalyse_from_graph
- from organized structured informationanalyse_from_spacy
- from well known modelsMost sources of dependencies.
Allow different lambda's for updating order of parents for each node.
# sample.yaml
name: parent
children:
- name: node-1
parents:
- name: parent-1
- name: parent-2
- name: node-2
parents:
- name: parent-2
- name: parent-3
name: parent-1
name: parent-2
name: parent-3
Allow sorting by score.
ComorbidGraph
.load_yaml('sample.yaml')
.sort_parents(by_score=['score'])
.to_yaml('sample_ordered.yaml')
# sample.yaml
name: parent
children:
- name: node-1
score: 1
parents:
- name: parent-1
score: 0.5
- name: parent-2
score: 0.2
- name: node-2
score: 0.8
parents:
- name: parent-2
score: 0.3
- name: parent-3
score: 0.1
name: parent-1
name: parent-2
name: parent-3
ComorbidGraph
.load_yaml('sample.yaml')
.sort_parents(by_name=['parent-1', 'parent-3'])
.to_yaml('sample_ordered.yaml')
# sample_ordered.yaml
name: parent
name: parent-1
children:
- name: node-1
parents:
- name: parent
- name: parent-2
name: parent-2
name: parent-3
children:
name: node-2
parents:
- name: parent
- name: parent-2
Closed dependencies when merging many graphs.
# closed_dependencies: check for at parent match in the hierarchy
# if not, release
ComorbidGraph.merge_trees(
list_of_graphs,
closed_dependencies=True
)
Advanced extraction together with extraction of sections for pages that are not Category
or List
or some other special word.
Because of the problem of pointers of objects, we are using deep copy for now.
Still the problem increases in scale if we want to use the results of the search in an analysis sense.
In this case the problem will become more problematic once increase in scale.
Assume that you have two graphs with shared children-names.
How do you compare these?
anxiety, panic attack
inc_parent:DSM-V
inc_title:Disorder
inc_text_longer:300
exc_ancestor:Neurodevelopmental Disorders
Clear pdf structures for each.
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.