History of allset_3d_objects
The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.
[entries] Add the date when each entry was added, and remove icon_hash beff7c9
The dates are those of the commits that first added the entries' files (2020-08-11 for the entries of the initial commit); renamed entries keep the date of their first name. Changed: none
diff --git a/entries/allset_3d_objects/__init__.py b/entries/allset_3d_objects/__init__.py
index 9b68de9..b954401 100644
--- a/entries/allset_3d_objects/__init__.py
+++ b/entries/allset_3d_objects/__init__.py
@@ -38,7 +38,7 @@ citation = [('E. Chien, C. Pan, J. Peng, O. Milenkovic, "You are AllSet: A Multi
('Y. Feng, H. You, Z. Zhang, R. Ji, Y. Gao, "Hypergraph Neural Networks." Proceedings of the AAAI Conference on Artificial Intelligence 33(01), 3558-3565 (2019)', 'https://doi.org/10.1609/aaai.v33i01.33013558'),
('Z. Wu, S. Song, A. Khosla, F. Yu, L. Zhang, X. Tang, J. Xiao, "3D ShapeNets: A deep representation for volumetric shapes." 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 1912-1920 (2015)', 'https://doi.org/10.1109/CVPR.2015.7298801'),
('D.-Y. Chen, X.-P. Tian, Y.-T. Shen, M. Ouhyoung, "On Visual Similarity Based 3D Model Retrieval." Computer Graphics Forum 22(3), 223-232 (2003)', 'https://doi.org/10.1111/1467-8659.00669')]
-icon_hash = None
+date_added = '2026-10-25'
upstream_license = ("MIT", "https://raw.githubusercontent.com/jianhao2016/AllSet/6281a2f1a91f6f26040777bb0b2578fc035dc57a/LICENSE")
upstream_prefix = 'https://raw.githubusercontent.com/jianhao2016/AllSet/6281a2f1a91f6f26040777bb0b2578fc035dc57a/data/raw_data'
_d = 'AllSet_all_raw_data.zip:AllSet_all_raw_data/'
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) bc3dbbd
The lists of properties at the end of the descriptions marked edge properties with "Edge" but left node properties unmarked, or grouped them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property was often unclear. Every item now starts with (Node), (Edge) or (Graph), followed by the property names, a colon and the explanation, one item per property or group of properties; qualifications (kinds of nodes, networks) follow the names in parentheses. Properties that were only named got a short explanation, and a few items that named the wrong kind of property were corrected.
diff --git a/entries/allset_3d_objects/__init__.py b/entries/allset_3d_objects/__init__.py
index 6a84b66..9b68de9 100644
--- a/entries/allset_3d_objects/__init__.py
+++ b/entries/allset_3d_objects/__init__.py
@@ -27,10 +27,11 @@ description = """Bipartite networks of 3D object models and their nearest-neighb
The networks have the following properties:
-- `is_neighborhood`: whether the node is a group (otherwise it is an object). Objects are the nodes 0 to n-1, in the order of the source data, and groups the nodes n to 2n-1.
-- Object nodes: `label`, the category of the object, as an integer index (1 to 40 for `modelnet40` and 0 to 66 for `ntu2012`, as in the source); the category names are not included in the source data. `features`, the 100-dimensional feature vector of the object, as given in the source data.
-- Group nodes: `center`, the index of the object node on which the group is centered. This is inferred from the order of the groups in the source data: the i-th group always contains the i-th object, which is consistent with groups being listed in the order of their centers.
-- Object nodes have `center` set to -1, and group nodes have `label` set to -1 and empty `features`."""
+- (Node) `is_neighborhood`: whether the node is a group (otherwise it is an object). Objects are the nodes 0 to n-1, in the order of the source data, and groups the nodes n to 2n-1.
+- (Node) `label` (objects): the category of the object, as an integer index (1 to 40 for `modelnet40` and 0 to 66 for `ntu2012`, as in the source); the category names are not included in the source data.
+- (Node) `features` (objects): the 100-dimensional feature vector of the object, as given in the source data.
+- (Node) `center` (groups): the index of the object node on which the group is centered. This is inferred from the order of the groups in the source data: the i-th group always contains the i-th object, which is consistent with groups being listed in the order of their centers.
+- (Node) Object nodes have `center` set to -1, and group nodes have `label` set to -1 and empty `features`."""
tags = ['Informational', 'Unweighted', 'Metadata']
url = 'https://github.com/jianhao2016/AllSet'
citation = [('E. Chien, C. Pan, J. Peng, O. Milenkovic, "You are AllSet: A Multiset Function Framework for Hypergraph Neural Networks." International Conference on Learning Representations (ICLR) (2022)', 'https://openreview.net/forum?id=hpBTIv2uy_E'),
[entries] Remove unneeded code from the entries 2c69f19
Unneeded "global files" statements, unused imports and variables, f-strings without placeholders, duplicate keys in foodweb_little_rock (keeping the order and the values used), and the second definition of get_lines() in twitter_higgs. Nothing changes in the networks or descriptions. Changed: none
diff --git a/entries/allset_3d_objects/__init__.py b/entries/allset_3d_objects/__init__.py
index cbdb380..6a84b66 100644
--- a/entries/allset_3d_objects/__init__.py
+++ b/entries/allset_3d_objects/__init__.py
@@ -54,7 +54,6 @@ def fetch_upstream(force=False):
@coerce_props()
@annotate()
def parse(alts=None):
- global files
name = __name__.split(".")[-1]
for fnames, alt, fmt in files:
if alts is not None and alt not in alts:
[entries] Use American spelling in the descriptions 802d564
British spellings in the titles and descriptions of 69 entries (e.g. labelled, organisation, millimetres, centres, anonymised, neighbours, analysed, modelled, colour, licence) are replaced by the American ones. Proper names keep their spelling (Otago Harbour, the Centre for Water Systems, the Centre jeunesse de Montréal, the Dutch Ministry of Defence), as do quoted upstream terms, citations, and property names.
diff --git a/entries/allset_3d_objects/__init__.py b/entries/allset_3d_objects/__init__.py
index 0be2cb3..cbdb380 100644
--- a/entries/allset_3d_objects/__init__.py
+++ b/entries/allset_3d_objects/__init__.py
@@ -20,7 +20,7 @@
from .. import *
title = "3D object nearest neighbourhoods (AllSet, 2021)"
-description = """Bipartite networks of 3D object models and their nearest-neighbour groups in a feature space, as compiled by Chien et al. as benchmarks for node classification, following the construction of Feng et al. (2019). The objects come from two collections of 3D shapes: ModelNet40, a set of computer-aided design (CAD) models of common objects (such as airplanes, chairs and cars) collected from the web by Wu et al. and classified into 40 categories, and the NTU 3D model dataset of Chen et al. (in the version known as NTU2012, with 67 categories). According to Chien et al., the objects are described by visual features extracted from rendered views of the models with the Multi-View Convolutional Neural Network (MVCNN) and the Group-View Convolutional Neural Network (GVCNN). For each object, a group was formed consisting of the object and its four nearest neighbours in feature space (the source does not state exactly which features were used for this), so that every group has exactly five objects and every object is the centre of exactly one group. Nodes are objects and groups, and an edge connects each group to each of its five member objects (including its centre). Groups centred on different objects can have the same members; they are kept as separate nodes. The groups cannot be reproduced from the 100-dimensional features included in the data, which were presumably derived differently (how they were obtained is not documented).
+description = """Bipartite networks of 3D object models and their nearest-neighbor groups in a feature space, as compiled by Chien et al. as benchmarks for node classification, following the construction of Feng et al. (2019). The objects come from two collections of 3D shapes: ModelNet40, a set of computer-aided design (CAD) models of common objects (such as airplanes, chairs and cars) collected from the web by Wu et al. and classified into 40 categories, and the NTU 3D model dataset of Chen et al. (in the version known as NTU2012, with 67 categories). According to Chien et al., the objects are described by visual features extracted from rendered views of the models with the Multi-View Convolutional Neural Network (MVCNN) and the Group-View Convolutional Neural Network (GVCNN). For each object, a group was formed consisting of the object and its four nearest neighbors in feature space (the source does not state exactly which features were used for this), so that every group has exactly five objects and every object is the center of exactly one group. Nodes are objects and groups, and an edge connects each group to each of its five member objects (including its center). Groups centered on different objects can have the same members; they are kept as separate nodes. The groups cannot be reproduced from the 100-dimensional features included in the data, which were presumably derived differently (how they were obtained is not documented).
- `modelnet40`: 12,311 objects from ModelNet40, in 40 categories, and their 12,311 groups (of which 10,630 have distinct sets of members).
- `ntu2012`: 2,012 objects from the NTU dataset, in 67 categories, and their 2,012 groups (of which 1,635 have distinct sets of members).
@@ -29,7 +29,7 @@ The networks have the following properties:
- `is_neighborhood`: whether the node is a group (otherwise it is an object). Objects are the nodes 0 to n-1, in the order of the source data, and groups the nodes n to 2n-1.
- Object nodes: `label`, the category of the object, as an integer index (1 to 40 for `modelnet40` and 0 to 66 for `ntu2012`, as in the source); the category names are not included in the source data. `features`, the 100-dimensional feature vector of the object, as given in the source data.
-- Group nodes: `center`, the index of the object node on which the group is centred. This is inferred from the order of the groups in the source data: the i-th group always contains the i-th object, which is consistent with groups being listed in the order of their centres.
+- Group nodes: `center`, the index of the object node on which the group is centered. This is inferred from the order of the groups in the source data: the i-th group always contains the i-th object, which is consistent with groups being listed in the order of their centers.
- Object nodes have `center` set to -1, and group nodes have `label` set to -1 and empty `features`."""
tags = ['Informational', 'Unweighted', 'Metadata']
url = 'https://github.com/jianhao2016/AllSet'
[entries] New entry: allset_3d_objects 4ec0a80
diff --git a/entries/allset_3d_objects/__init__.py b/entries/allset_3d_objects/__init__.py
new file mode 100644
index 0000000..0be2cb3
--- /dev/null
+++ b/entries/allset_3d_objects/__init__.py
@@ -0,0 +1,102 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020-2026 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+from .. import *
+
+title = "3D object nearest neighbourhoods (AllSet, 2021)"
+description = """Bipartite networks of 3D object models and their nearest-neighbour groups in a feature space, as compiled by Chien et al. as benchmarks for node classification, following the construction of Feng et al. (2019). The objects come from two collections of 3D shapes: ModelNet40, a set of computer-aided design (CAD) models of common objects (such as airplanes, chairs and cars) collected from the web by Wu et al. and classified into 40 categories, and the NTU 3D model dataset of Chen et al. (in the version known as NTU2012, with 67 categories). According to Chien et al., the objects are described by visual features extracted from rendered views of the models with the Multi-View Convolutional Neural Network (MVCNN) and the Group-View Convolutional Neural Network (GVCNN). For each object, a group was formed consisting of the object and its four nearest neighbours in feature space (the source does not state exactly which features were used for this), so that every group has exactly five objects and every object is the centre of exactly one group. Nodes are objects and groups, and an edge connects each group to each of its five member objects (including its centre). Groups centred on different objects can have the same members; they are kept as separate nodes. The groups cannot be reproduced from the 100-dimensional features included in the data, which were presumably derived differently (how they were obtained is not documented).
+
+- `modelnet40`: 12,311 objects from ModelNet40, in 40 categories, and their 12,311 groups (of which 10,630 have distinct sets of members).
+- `ntu2012`: 2,012 objects from the NTU dataset, in 67 categories, and their 2,012 groups (of which 1,635 have distinct sets of members).
+
+The networks have the following properties:
+
+- `is_neighborhood`: whether the node is a group (otherwise it is an object). Objects are the nodes 0 to n-1, in the order of the source data, and groups the nodes n to 2n-1.
+- Object nodes: `label`, the category of the object, as an integer index (1 to 40 for `modelnet40` and 0 to 66 for `ntu2012`, as in the source); the category names are not included in the source data. `features`, the 100-dimensional feature vector of the object, as given in the source data.
+- Group nodes: `center`, the index of the object node on which the group is centred. This is inferred from the order of the groups in the source data: the i-th group always contains the i-th object, which is consistent with groups being listed in the order of their centres.
+- Object nodes have `center` set to -1, and group nodes have `label` set to -1 and empty `features`."""
+tags = ['Informational', 'Unweighted', 'Metadata']
+url = 'https://github.com/jianhao2016/AllSet'
+citation = [('E. Chien, C. Pan, J. Peng, O. Milenkovic, "You are AllSet: A Multiset Function Framework for Hypergraph Neural Networks." International Conference on Learning Representations (ICLR) (2022)', 'https://openreview.net/forum?id=hpBTIv2uy_E'),
+ ('Y. Feng, H. You, Z. Zhang, R. Ji, Y. Gao, "Hypergraph Neural Networks." Proceedings of the AAAI Conference on Artificial Intelligence 33(01), 3558-3565 (2019)', 'https://doi.org/10.1609/aaai.v33i01.33013558'),
+ ('Z. Wu, S. Song, A. Khosla, F. Yu, L. Zhang, X. Tang, J. Xiao, "3D ShapeNets: A deep representation for volumetric shapes." 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 1912-1920 (2015)', 'https://doi.org/10.1109/CVPR.2015.7298801'),
+ ('D.-Y. Chen, X.-P. Tian, Y.-T. Shen, M. Ouhyoung, "On Visual Similarity Based 3D Model Retrieval." Computer Graphics Forum 22(3), 223-232 (2003)', 'https://doi.org/10.1111/1467-8659.00669')]
+icon_hash = None
+upstream_license = ("MIT", "https://raw.githubusercontent.com/jianhao2016/AllSet/6281a2f1a91f6f26040777bb0b2578fc035dc57a/LICENSE")
+upstream_prefix = 'https://raw.githubusercontent.com/jianhao2016/AllSet/6281a2f1a91f6f26040777bb0b2578fc035dc57a/data/raw_data'
+_d = 'AllSet_all_raw_data.zip:AllSet_all_raw_data/'
+files = [((_d + 'ModelNet40/ModelNet40.edges', _d + 'ModelNet40/ModelNet40.content'),
+ 'modelnet40', None),
+ ((_d + 'NTU2012/NTU2012.edges', _d + 'NTU2012/NTU2012.content'),
+ 'ntu2012', None)]
+
+def fetch_upstream(force=False):
+ return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
+ force)
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+ global files
+ name = __name__.split(".")[-1]
+ for fnames, alt, fmt in files:
+ if alts is not None and alt not in alts:
+ continue
+ if isinstance(fnames, str):
+ fnames = [fnames]
+ with ExitStack() as stack:
+ fs = [stack.enter_context(open_upstream_file(name, fn, "r")) for fn in fnames]
+
+ # Incidences: "node_id <tab> group_id", with objects numbered
+ # 0..n-1 and groups n..2n-1
+ e = read_ints(fs[0]).reshape(-1, 2)
+ n = int(e[:, 1].min())
+ assert e[:, 0].max() == n - 1 and e[:, 0].min() == 0
+ members = e[:, 0]
+ groups = e[:, 1] - n
+ n_groups = int(groups.max()) + 1
+
+ # Content: "id <100 features> label"; the first n rows are the
+ # objects, the remaining ones are placeholders for the groups
+ ids = []
+ feats = []
+ labels = []
+ for line in fs[1]:
+ row = line.split()
+ if len(ids) == n:
+ break
+ ids.append(int(row[0]))
+ feats.append(numpy.array(row[1:-1], dtype=float))
+ labels.append(int(float(row[-1])))
+ assert ids == list(range(n))
+
+ g = bipartite_graph(groups, members, n_groups, n, "is_neighborhood")
+
+ g.vp.label = g.new_vp("int", val=-1)
+ g.vp.label.a[:n] = labels
+ g.vp.features = g.new_vp("vector<double>")
+ for v in range(n):
+ g.vp.features[v] = feats[v]
+
+ # The i-th group always contains the i-th object (its centre)
+ assert all(i in set(members[groups == i]) for i in range(0, n_groups, 97))
+ g.vp.center = g.new_vp("int", val=-1)
+ g.vp.center.a[n:] = numpy.arange(n_groups)
+ yield alt, g