text
stringlengths
5
22M
id
stringlengths
12
177
metadata
dict
__index_level_0__
int64
0
1.37k
<?xml version='1.0' encoding='UTF-8'?> <glyph name="jcaron" format="2"> <advance width="1200"/> <unicode hex="01F0"/> <outline> <component base="jdotless"/> <component base="caroncomb" xOffset="171" yOffset="1"/> </outline> </glyph>
cascadia-code/sources/CascadiaCode-ExtraLightItalic.ufo/glyphs/jcaron.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-ExtraLightItalic.ufo/glyphs/jcaron.glif", "repo_id": "cascadia-code", "token_count": 101 }
442
<?xml version='1.0' encoding='UTF-8'?> <glyph name="Iacute" format="2"> <advance width="1200"/> <unicode hex="00CD"/> <outline> <component base="I"/> <component base="acutecomb.case"/> </outline> </glyph>
cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/I_acute.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Italic.ufo/glyphs/I_acute.glif", "repo_id": "cascadia-code", "token_count": 91 }
443
<?xml version='1.0' encoding='UTF-8'?> <glyph name="ainTwodotshorizontalabove-ar.init" format="2"> <advance width="1200"/> <outline> <component base="ain-ar.init"/> <component base="twodotshorizontalabove-ar" xOffset="71" yOffset="313"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyph...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/ainT_wodotshorizontalabove-ar.init.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/ainT_wodotshorizontalabove-ar.init.glif", "repo_id": "cascadia-code", "token_count": 352 }
444
<?xml version='1.0' encoding='UTF-8'?> <glyph name="dahal-ar" format="2"> <advance width="1200"/> <unicode hex="068C"/> <outline> <component base="dal-ar"/> <component base="twodotshorizontalabove-ar" xOffset="16" yOffset="502"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.Comp...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/dahal-ar.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/dahal-ar.glif", "repo_id": "cascadia-code", "token_count": 354 }
445
<?xml version='1.0' encoding='UTF-8'?> <glyph name="dalTwodotsverticalbelowTahabove-ar" format="2"> <advance width="1200"/> <unicode hex="0759"/> <outline> <component base="dal-ar"/> <component base="twodotsverticalbelow-ar" xOffset="-30" yOffset="-24"/> <component base="_tahabove" xOffset="52" yOffse...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/dalT_wodotsverticalbelowT_ahabove-ar.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/dalT_wodotsverticalbelowT_ahabove-ar.glif", "repo_id": "cascadia-code", "token_count": 606 }
446
<?xml version='1.0' encoding='UTF-8'?> <glyph name="gafThreedots-ar" format="2"> <advance width="1200"/> <unicode hex="06B4"/> <anchor x="660" y="1850" name="top"/> <outline> <component base="gaf-ar"/> <component base="threedotsupabove-ar.v2" xScale="0.8" yScale="0.8" xOffset="228" yOffset="912"/> </o...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/gafT_hreedots-ar.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/gafT_hreedots-ar.glif", "repo_id": "cascadia-code", "token_count": 392 }
447
<?xml version='1.0' encoding='UTF-8'?> <glyph name="gueh-ar" format="2"> <advance width="1200"/> <unicode hex="06B3"/> <outline> <component base="gaf-ar"/> <component base="twodotsverticalbelow-ar" xOffset="-47" yOffset="-24"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.Compon...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/gueh-ar.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/gueh-ar.glif", "repo_id": "cascadia-code", "token_count": 354 }
448
<?xml version='1.0' encoding='UTF-8'?> <glyph name="hehVinvertedabove-ar.fina" format="2"> <advance width="1200"/> <outline> <component base="hehDoachashmee-ar.fina"/> <component base="vinvertedabove-ar" xOffset="39" yOffset="388"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.Com...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/hehV_invertedabove-ar.fina.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/hehV_invertedabove-ar.fina.glif", "repo_id": "cascadia-code", "token_count": 350 }
449
<?xml version='1.0' encoding='UTF-8'?> <glyph name="noonRing-ar.init" format="2"> <advance width="1200"/> <outline> <component base="yehKashmiri-ar.init"/> <component base="dotabove-ar" xOffset="235" yOffset="335"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.ComponentInfo</key> ...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/noonR_ing-ar.init.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/noonR_ing-ar.init.glif", "repo_id": "cascadia-code", "token_count": 376 }
450
<?xml version='1.0' encoding='UTF-8'?> <glyph name="one-arsuperior" format="2"> <advance width="1200"/> <outline> <component base="one-arinferior" yOffset="801"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.ComponentInfo</key> <array> <dict> <key>alignment</ke...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/one-arsuperior.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/one-arsuperior.glif", "repo_id": "cascadia-code", "token_count": 437 }
451
<?xml version='1.0' encoding='UTF-8'?> <glyph name="qafDotbelow-ar.medi" format="2"> <advance width="1200"/> <outline> <component base="qaf-ar.medi"/> <component base="dotbelow-ar" xOffset="-17" yOffset="-24"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.ComponentInfo</key> ...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/qafD_otbelow-ar.medi.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/qafD_otbelow-ar.medi.glif", "repo_id": "cascadia-code", "token_count": 342 }
452
<?xml version='1.0' encoding='UTF-8'?> <glyph name="sadTwodotsbelow-ar.alt" format="2"> <advance width="1200"/> <outline> <component base="sad-ar.alt"/> <component base="twodotshorizontalbelow-ar" xOffset="-130" yOffset="-24"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.Componen...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/sadT_wodotsbelow-ar.alt.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/sadT_wodotsbelow-ar.alt.glif", "repo_id": "cascadia-code", "token_count": 353 }
453
<?xml version='1.0' encoding='UTF-8'?> <glyph name="six-arsuperior" format="2"> <advance width="1200"/> <outline> <component base="six-arinferior" yOffset="801"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.ComponentInfo</key> <array> <dict> <key>alignment</ke...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/six-arsuperior.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/six-arsuperior.glif", "repo_id": "cascadia-code", "token_count": 437 }
454
<?xml version='1.0' encoding='UTF-8'?> <glyph name="teh-ar" format="2"> <advance width="1200"/> <unicode hex="062A"/> <outline> <component base="behDotless-ar"/> <component base="twodotshorizontalabove-ar" xOffset="-10" yOffset="93"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/teh-ar.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/teh-ar.glif", "repo_id": "cascadia-code", "token_count": 357 }
455
<?xml version='1.0' encoding='UTF-8'?> <glyph name="wawTwodots-ar" format="2"> <advance width="1200"/> <unicode hex="06CA"/> <outline> <component base="waw-ar"/> <component base="twodotshorizontalabove-ar" xOffset="70" yOffset="238"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/wawT_wodots-ar.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/wawT_wodots-ar.glif", "repo_id": "cascadia-code", "token_count": 356 }
456
<?xml version='1.0' encoding='UTF-8'?> <glyph name="yehTwodotsbelowHamzaabove-ar.fina" format="2"> <advance width="1200"/> <outline> <component base="yeh-ar.fina"/> <component base="hamzaabove-ar" xOffset="-446" yOffset="-774"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.Compone...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/yehT_wodotsbelowH_amzaabove-ar.fina.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/yehT_wodotsbelowH_amzaabove-ar.fina.glif", "repo_id": "cascadia-code", "token_count": 350 }
457
<?xml version='1.0' encoding='UTF-8'?> <glyph name="yu-ar" format="2"> <advance width="1200"/> <unicode hex="06C8"/> <outline> <component base="waw-ar"/> <component base="alefabove-ar" xOffset="50" yOffset="356"/> </outline> <lib> <dict> <key>com.schriftgestaltung.Glyphs.ComponentInfo</key> ...
cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/yu-ar.glif/0
{ "file_path": "cascadia-code/sources/CascadiaCode-Regular.ufo/glyphs/yu-ar.glif", "repo_id": "cascadia-code", "token_count": 345 }
458
feature ccmp { lookup ccmp_Other_1 { @CombiningTopAccents = [acutecomb acutetonecomb brevecomb caroncomb circumflexcomb commaabovecomb commaaboverightcomb commaturnedabovecomb dieresiscomb dotaccentcomb gravecomb gravetonecomb hookabovecomb hungarumlautcomb macroncomb perispomenicomb ringcomb tildecomb]; @CombiningNo...
cascadia-code/sources/features/ccmp.fea/0
{ "file_path": "cascadia-code/sources/features/ccmp.fea", "repo_id": "cascadia-code", "token_count": 606 }
459
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>lib</key> <dict> <key>com.schriftgestaltung.layerId</key> <string>F8C3375C-B372-4BAE-A3FB-5A8DC7FA7AB9</string> <key...
cascadia-code/sources/nerdfonts/NerdfontsPL-Regular.ufo/glyphs/layerinfo.plist/0
{ "file_path": "cascadia-code/sources/nerdfonts/NerdfontsPL-Regular.ufo/glyphs/layerinfo.plist", "repo_id": "cascadia-code", "token_count": 3528 }
460
<?xml version='1.0' encoding='UTF-8'?> <glyph name="airport" format="2"> <advance width="512"/> <unicode hex="F084B"/> <note> airport </note> <outline> <contour> <point x="321" y="314"/> <point x="313" y="299"/> <point x="305" y="296" type="qcurve"/> <point x="78" y="236" type="line"...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/airport.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/airport.glif", "repo_id": "cascadia-code", "token_count": 785 }
461
<?xml version='1.0' encoding='UTF-8'?> <glyph name="album" format="2"> <advance width="512"/> <unicode hex="F0025"/> <note> album </note> <outline> <contour> <point x="265" y="213"/> <point x="277" y="201"/> <point x="277" y="183"/> <point x="265" y="171"/> <point x="247" y="17...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/album.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/album.glif", "repo_id": "cascadia-code", "token_count": 716 }
462
<?xml version='1.0' encoding='UTF-8'?> <glyph name="checkbox-blank-circle-outline" format="2"> <advance width="512"/> <unicode hex="F0130"/> <unicode hex="F043D"/> <unicode hex="F0766"/> <note> checkbox-blank-circle-outline </note> <outline> <contour> <point x="302" y="21"/> <point x="381" y...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/checkbox-blank-circle-outline.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/checkbox-blank-circle-outline.glif", "repo_id": "cascadia-code", "token_count": 648 }
463
<?xml version='1.0' encoding='UTF-8'?> <glyph name="emoticon-sad" format="2"> <advance width="512"/> <unicode hex="F0C76"/> <note> emoticon-sad </note> <outline> <contour> <point x="298" y="405"/> <point x="377" y="373"/> <point x="437" y="313"/> <point x="469" y="234"/> <point...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/emoticon-sad.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/emoticon-sad.glif", "repo_id": "cascadia-code", "token_count": 955 }
464
<?xml version='1.0' encoding='UTF-8'?> <glyph name="music-note-whole" format="2"> <advance width="512"/> <unicode hex="F038D"/> <note> music-note-whole </note> <outline> <contour> <point x="238" y="128"/> <point x="213" y="103"/> <point x="213" y="85" type="qcurve" smooth="yes"/> <po...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/music-note-whole.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/music-note-whole.glif", "repo_id": "cascadia-code", "token_count": 485 }
465
<?xml version='1.0' encoding='UTF-8'?> <glyph name="pan-right" format="2"> <advance width="512"/> <unicode hex="F0BBA"/> <note> pan-right </note> <outline> <contour> <point x="459" y="192" type="line"/> <point x="363" y="107" type="line"/> <point x="363" y="277" type="line"/> </contour...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/pan-right.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/pan-right.glif", "repo_id": "cascadia-code", "token_count": 327 }
466
<?xml version='1.0' encoding='UTF-8'?> <glyph name="panorama-vertical-outline" format="2"> <advance width="512"/> <unicode hex="F03DF"/> <note> panorama-vertical-outline </note> <outline> <contour> <point x="372" y="21" type="line"/> <point x="348" y="105"/> <point x="348" y="279"/> ...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/panorama-vertical-outline.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/panorama-vertical-outline.glif", "repo_id": "cascadia-code", "token_count": 724 }
467
<?xml version='1.0' encoding='UTF-8'?> <glyph name="phone-bluetooth-outline" format="2"> <advance width="512"/> <unicode hex="F118F"/> <note> phone-bluetooth-outline </note> <outline> <contour> <point x="435" y="117"/> <point x="448" y="104"/> <point x="448" y="96" type="qcurve" smooth="ye...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/phone-bluetooth-outline.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/phone-bluetooth-outline.glif", "repo_id": "cascadia-code", "token_count": 1518 }
468
<?xml version='1.0' encoding='UTF-8'?> <glyph name="railroad-light" format="2"> <advance width="512"/> <unicode hex="F0F1E"/> <note> railroad-light </note> <outline> <contour> <point x="402" y="224"/> <point x="437" y="191"/> <point x="444" y="144"/> <point x="415" y="103"/> <p...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/railroad-light.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/railroad-light.glif", "repo_id": "cascadia-code", "token_count": 1358 }
469
<?xml version='1.0' encoding='UTF-8'?> <glyph name="tag-off-outline" format="2"> <advance width="512"/> <unicode hex="F1221"/> <note> tag-off-outline </note> <outline> <contour> <point x="152" y="341"/> <point x="171" y="323"/> <point x="171" y="296"/> <point x="152" y="277"/> ...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/tag-off-outline.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/tag-off-outline.glif", "repo_id": "cascadia-code", "token_count": 1368 }
470
<?xml version='1.0' encoding='UTF-8'?> <glyph name="zodiac-gemini" format="2"> <advance width="512"/> <unicode hex="F0A81"/> <note> zodiac-gemini </note> <outline> <contour> <point x="384" y="49" type="line"/> <point x="428" y="38"/> <point x="468" y="21" type="qcurve"/> <point x="45...
cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/zodiac-gemini.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/original/MaterialDesignIconsDesktop.ufo/glyphs/zodiac-gemini.glif", "repo_id": "cascadia-code", "token_count": 651 }
471
<?xml version='1.0' encoding='UTF-8'?> <glyph name="format-textdirection-r-to-l" format="2"> <advance width="1200"/> <unicode hex="F0286"/> <note> format-textdirection-r-to-l </note> <outline> <contour> <point x="1170" y="353" type="line"/> <point x="317" y="353" type="line"/> <point x="31...
cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/format-textdirection-r-to-l.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/format-textdirection-r-to-l.glif", "repo_id": "cascadia-code", "token_count": 572 }
472
<?xml version='1.0' encoding='UTF-8'?> <glyph name="hoop-house" format="2"> <advance width="1200"/> <unicode hex="F0E56"/> <note> hoop-house </note> <outline> <contour> <point x="758" y="1174"/> <point x="600" y="1174" type="qcurve" smooth="yes"/> <point x="442" y="1174"/> <point x="...
cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/hoop-house.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/hoop-house.glif", "repo_id": "cascadia-code", "token_count": 861 }
473
<?xml version='1.0' encoding='UTF-8'?> <glyph name="human-queue" format="2"> <advance width="1200"/> <unicode hex="F1571"/> <note> human-queue </note> <outline> <contour> <point x="241" y="1059"/> <point x="194" y="1059" type="qcurve" smooth="yes"/> <point x="145" y="1059"/> <point x...
cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/human-queue.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/human-queue.glif", "repo_id": "cascadia-code", "token_count": 1544 }
474
<?xml version='1.0' encoding='UTF-8'?> <glyph name="set-center" format="2"> <advance width="1200"/> <unicode hex="F0779"/> <note> set-center </note> <outline> <contour> <point x="516" y="1116"/> <point x="426" y="1116" type="qcurve" smooth="yes"/> <point x="314" y="1116"/> <point x="...
cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/set-center.glif/0
{ "file_path": "cascadia-code/sources/nerdfonts/full/processed/MaterialDesignIconsDesktop.ufo/glyphs/set-center.glif", "repo_id": "cascadia-code", "token_count": 1138 }
475
[tool.poetry] name = "causica" version = "0.4.1" description = "" readme = "README.md" authors = ["Microsoft Research - Causica"] packages = [ { include = "causica", from = "src" } ] license = "MIT" [tool.poetry.dependencies] azureml-mlflow = "^1.46.0" dataclasses-json = "^0.5.7" jsonargparse = "<4.21.0" # 4.21.0...
causica/pyproject.toml/0
{ "file_path": "causica/pyproject.toml", "repo_id": "causica", "token_count": 5062 }
476
import torch from scotch.sdes.sde_modules import ( ContextualDriftCoefficient, DiffusionCoefficient, GraphCoefficient, TrajectoryGraphEncoder, ) from torch import Tensor, nn, vmap from torch.func import stack_module_state from causica.functional_relationships.icgnn import FGNNI as DECIEmbedNN class N...
causica/research_experiments/scotch/src/scotch/latent_learning/scotch_nns.py/0
{ "file_path": "causica/research_experiments/scotch/src/scotch/latent_learning/scotch_nns.py", "repo_id": "causica", "token_count": 3375 }
477
import abc from typing import Generic, TypeVar SampleType = TypeVar("SampleType") class Sampler(Generic[SampleType], abc.ABC): """ An interface of a sampler, useful for generative processes The interface only allows sampling one thing at a time. """ @abc.abstractmethod def sample(self) -> S...
causica/src/causica/data_generation/samplers/sampler.py/0
{ "file_path": "causica/src/causica/data_generation/samplers/sampler.py", "repo_id": "causica", "token_count": 120 }
478
import abc from typing import Optional import torch import torch.distributions as td class AdjacencyDistribution(td.Distribution, abc.ABC): """ Probability distributions over binary adjacency matrices for graphs. NOTE: Because we want to differentiate through samples (which are binary matrices), we ...
causica/src/causica/distributions/adjacency/adjacency_distributions.py/0
{ "file_path": "causica/src/causica/distributions/adjacency/adjacency_distributions.py", "repo_id": "causica", "token_count": 1315 }
479
""" Implementation of the Piecewise Rational Quadratic Transform This is pretty much a copy-paste of https://github.com/tonyduan/normalizing-flows/blob/master/nf/utils.py We should consider using the Pyro implementation. """ import torch import torch.distributions as td from causica.distributions.noise.spline.b...
causica/src/causica/distributions/noise/spline/rational_quadratic_transform.py/0
{ "file_path": "causica/src/causica/distributions/noise/spline/rational_quadratic_transform.py", "repo_id": "causica", "token_count": 1857 }
480
import torch def calculate_dagness(A: torch.Tensor) -> torch.Tensor: """ Computes the dag penalty for matrix A as trace(exp(A)) - dim. Args: A (torch.Tensor): Binary adjacency matrix, size (...., input_dim, input_dim). Returns: (torch.Tensor): Dagness term. """ return torch.e...
causica/src/causica/graph/dag_constraint.py/0
{ "file_path": "causica/src/causica/graph/dag_constraint.py", "repo_id": "causica", "token_count": 156 }
481
from causica.nn.deci_embed_nn import DECIEmbedNN
causica/src/causica/nn/__init__.py/0
{ "file_path": "causica/src/causica/nn/__init__.py", "repo_id": "causica", "token_count": 19 }
482
import itertools from causica.datasets.samplers import SubsetBatchSampler def test_subset_batch_sampler_ordered(): sampler = SubsetBatchSampler([2, 3, 5], 2, shuffle=False) samples = list(sampler) assert samples == [[0, 1], [2, 3], [4], [5, 6], [7, 8], [9]] assert len(samples) == len(sampler) def t...
causica/test/datasets/test_samplers.py/0
{ "file_path": "causica/test/datasets/test_samplers.py", "repo_id": "causica", "token_count": 508 }
483
import pytest import torch from tensordict import TensorDict from causica.distributions import ( BernoulliNoise, CategoricalNoise, IndependentNoise, JointNoise, Noise, UnivariateNormalNoise, ) torch.manual_seed(0) NOISE_DISTRIBUTIONS = [ IndependentNoise(BernoulliNoise(torch.randn(3), tor...
causica/test/distributions/noise/test_joint.py/0
{ "file_path": "causica/test/distributions/noise/test_joint.py", "repo_id": "causica", "token_count": 1841 }
484
#!/usr/bin/env/python """ Usage: get_qm9.py Options: -h --help Show this screen. """ import sys, os sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) from rdkit import Chem from rdkit.Chem import rdmolops from rdkit.Chem import QED import glob import json import nu...
constrained-graph-variational-autoencoder/data/get_qm9.py/0
{ "file_path": "constrained-graph-variational-autoencoder/data/get_qm9.py", "repo_id": "constrained-graph-variational-autoencoder", "token_count": 1725 }
485
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Dict, List, Optional from pydantic import BaseModel ENT_PROP_MAP = { "CARDINAL": "cardinals", "DATE": "dates", "EVENT": "events", "FAC": "facilities", "GPE": "gpes", "LANGUAGE": "l...
cookiecutter-spacy-fastapi/{{cookiecutter.project_slug}}/app/models.py/0
{ "file_path": "cookiecutter-spacy-fastapi/{{cookiecutter.project_slug}}/app/models.py", "repo_id": "cookiecutter-spacy-fastapi", "token_count": 508 }
486