Questions tagged [hierarchical]

For issues relating to arranging data and/or resources in a hierarchy.

A hierarchy is an arrangement of items (objects, names, values, categories, resources, etc.) in which the items are represented as being "above," "below," or "at the same level as" one another. Abstractly, a hierarchy is simply an ordered set or an acyclic directed graph.

A hierarchy can link entities either directly or indirectly, and either vertically or horizontally. The only direct links in a hierarchy, insofar as they are hierarchical, are to one's immediate superior or to one of one's subordinates, although a system that is largely hierarchical can also incorporate alternative hierarchies. Indirect hierarchical links can extend "vertically" upwards or downwards via multiple links in the same direction, following a path. All parts of the hierarchy which are not linked vertically to one another nevertheless can be "horizontally" linked through a path by traveling up the hierarchy to find a common direct or indirect superior, and then down again.

568 questions
4
votes
2 answers

Complex hierarchical query in SQL

Following is a data setup for which SQL needs to be written. Table:parchil par chil -------------------- E1 E2 E2 E3 E3 E4 E5 E6 E7 E8 Table:subval sub val -------------------- E1 …
digdug
  • 211
  • 2
  • 4
  • 14
4
votes
1 answer

Creating IP hierarchical list in PHP

I have a database table storing IP adresses, wich look like this: E_ID IP MASK I want to make it to look like this: E_ID Parent_ID IP MASK So that I can easily get my IP adresses tree: 80.17.0.0/18 (id=1 parent id = -1) 80.17.0.0/24…
andrius.k
  • 799
  • 1
  • 10
  • 26
4
votes
4 answers

Create hierarchical formatted output from table

I have a SQL table like this: CC Descr C_NO Vol Wt 2050 Des1 123 20 40 2060 Des2 123 30 50 2050 Des1 125 20 40 2060 Des2 125 30 50 2050 Des1 126 20 40 and I want output like…
user680865
  • 289
  • 2
  • 6
  • 13
3
votes
3 answers

.Net MVC Passing Nested Data from Controller to View

I am creating a .NET MVC application and I have a view in which I want to display the following: Category followed by a list of items for the current Category [possibly] followed by a list of sub items for the current item I could create a custom…
mikerennick
  • 385
  • 2
  • 15
3
votes
2 answers

How to combine hierarchical lists into one while respecting the hierarchy of each one of them using networkx and python?

For a medical application I want to combine several lists into one list. The items in each list represent actions to be taken for a specific disease. For instance the list Malaria would look like that: 'Give Malaria medication' 'Give…
Aneho
  • 118
  • 7
3
votes
0 answers

Theano.scan in hierarchical PyMC3 models

I want to apply theano.scan over multiple parameters in a hierarchical model. The code works great for a single model, however, I'm not sure how to convert the model to a hierarchical model (requiring additional looping). Here is the code for the…
Zach Wolpe
  • 31
  • 1
3
votes
2 answers

Use Jquery to convert single UL LI list into a hierarchal nested list based on a class

I have an unordered list that needs to be spilit into a hierachal list, depending on the class that has been pre-assigned to each . Specifically, if the original list is like this:
3
votes
1 answer

Creating new columns based on value from another column in pandas

I have this pandas dataframe with column "Code" that contains the sequential hierarchical code. My goal is to create new columns with each hierarchical level code and its name as followed: Original data: Code Name 0 A USA 1 AM …
BoBoMann
  • 101
  • 1
  • 7
3
votes
2 answers

Help with a connect by prior query

I have the following data Order_ID Pallet_ID O1 P1 O2 P1 O2 P2 O3 P2 O3 P3 O4 P4 Where orders can be on multiple pallets, and more than one order can be on a pallet. I need to select the group of orders…
Greg Reynolds
  • 9,736
  • 13
  • 49
  • 60
3
votes
1 answer

How are matrices multiplied in Hierarchical Softmax model?

As I understood, the simple word2vec approach uses two matrices like the following: Assuming that the corpus consists of N words. Weighted input matrix (WI) with dimensions NxF (F is number of features). Weighted output matrix (WO) with dimensions…
abbudeh
  • 65
  • 8
3
votes
1 answer

Spring Security: method to check if a user has a Hierarchical Role

how i can check if a user has a hierarchical role at runtime ? I know this solution for the url authorization @PreAuthorize("hasRole('ROLE_ADMIN')") but inside a method if i have to check the role ? For example: ROLE_ADMIN > ROLE_USER >…
Alberto Costa
  • 127
  • 1
  • 6
3
votes
2 answers

Use Linq to Query for terminal/Leaf nodes in Hierarchical Table/Composite pattern

I have a self-referencing table with an Id, CategoryName, and ParentId. It's a typical scenario of a hierarchy table of categories that can themselves be divided into categories that DB experts tell me is called the adjacency model. What I want is…
jlembke
  • 13,217
  • 11
  • 42
  • 56
3
votes
3 answers

Hierarchical classification top down approach to machine learning

I have a dataset of sentences that have been annotated with labels from a hierarchy. The hierarchy is a selection of music genres. It is a tree, not a DAG - each node has one parent and one parent only. Here is an extract as an example: root =…
user47467
  • 1,045
  • 2
  • 17
  • 34
3
votes
6 answers

Hierarchical table column in Java

Is there any Java library that supports hierarchical column? For example (the first three row are columns) : ------------------------------------------------ 2008 …
Donnie Permana
3
votes
1 answer

pymc3's NUTS can't perform well with my hierarchical model for Bayesian Neural Nets?

I have a Hierarchical model for learning Bayesian networks with only single hidden layer . Network parameters are divided to 4 groups of input-to-hidden and hidden-to-output weights and biases. A Gaussian prior is defined over each parameter group.…
mashall aryan
  • 71
  • 1
  • 6