Skip to content

Commit

Permalink
added docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
judyueshen committed Jul 13, 2020
1 parent c14bd51 commit eaa826c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pertbio/pertbio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
Import all necessary modules
"""
from pertbio.config import Config
from pertbio.model import *
from pertbio.kernel import *
Expand Down
3 changes: 2 additions & 1 deletion pertbio/pertbio/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
This module defines the structures for different models, including
CellBox, linear regression, and co-expression
CellBox, linear regression, Neural network, and co-expression
"""

import numpy as np
Expand Down Expand Up @@ -183,6 +183,7 @@ def forward(self, mu):


class NN(LinReg):
"""Neural network model"""
def get_variables(self):
with tf.compat.v1.variable_scope("initialization", reuse=True):
self.params.update({
Expand Down

0 comments on commit eaa826c

Please sign in to comment.