@@ -1,3 +1,8 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
from .weights import * | from .weights import * | ||||
from .convolve import * | from .convolve import * | ||||
from .model import * | from .model import * | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
import scipy.sparse as sp | import scipy.sparse as sp | ||||
@@ -3,6 +3,7 @@ | |||||
# License: GPLv3 | # License: GPLv3 | ||||
# | # | ||||
""" | """ | ||||
This module implements the basic convolutional blocks of Decagon. | This module implements the basic convolutional blocks of Decagon. | ||||
Just as a quick reminder, the basic convolution formula here is: | Just as a quick reminder, the basic convolution formula here is: | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
from collections import defaultdict | from collections import defaultdict | ||||
from .decode import BilinearDecoder | from .decode import BilinearDecoder | ||||
from .weights import init_glorot | from .weights import init_glorot | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
import torch | import torch | ||||
from .weights import init_glorot | from .weights import init_glorot | ||||
from .dropout import dropout | from .dropout import dropout | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
import torch | import torch | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
# | # | ||||
# This module implements a single layer of the Decagon | # This module implements a single layer of the Decagon | ||||
# model. This is going to be already quite complex, as | # model. This is going to be already quite complex, as | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
from .layer import Layer | from .layer import Layer | ||||
import torch | import torch | ||||
from ..convolve import DropoutGraphConvActivation | from ..convolve import DropoutGraphConvActivation | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
from .layer import Layer | from .layer import Layer | ||||
import torch | import torch | ||||
from ..data import Data | from ..data import Data | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
from .layer import Layer | from .layer import Layer | ||||
import torch | import torch | ||||
from typing import Union, \ | from typing import Union, \ | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
import torch | import torch | ||||
from typing import List, \ | from typing import List, \ | ||||
Union | Union | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
class Model(object): | class Model(object): | ||||
def __init__(self, data): | def __init__(self, data): | ||||
self.data = data | self.data = data | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
import numpy as np | import numpy as np | ||||
import scipy.sparse as sp | import scipy.sparse as sp | ||||
@@ -1,3 +1,9 @@ | |||||
# | |||||
# Copyright (C) Stanislaw Adaszewski, 2020 | |||||
# License: GPLv3 | |||||
# | |||||
import torch | import torch | ||||
import numpy as np | import numpy as np | ||||