This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matminer.datasets import load_dataset | |
from pymatgen.core import Composition | |
from matminer.featurizers.structure import DensityFeatures | |
from matminer.featurizers.conversions import StrToComposition | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import mean_absolute_error | |
from sklearn.dummy import DummyRegressor | |
import pprint | |
from automatminer import MatPipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* we have to go through all nodes */ | |
MATCH (node:Page) | |
WITH | |
COLLECT(distinct node) AS pages | |
UNWIND pages as dest | |
/* let's find all source citations for a given node */ | |
MATCH (source:Page)-[:NEXT]->(dest) | |
WITH | |
COLLECT(DISTINCT source) AS sources, | |
dest AS dest |