27 lines (16 with data), 7.2 kB
ÇĽ îdocutils.nodesöîdocumentöôö)üö}ö(î rawsourceöî öîchildrenö]öh îsectionöôö)üö}ö(hhh]ö(h îtitleöôö)üö}ö(hî%Message Passing Neural Network (MPNN)öh]öh îTextöôöî%Message Passing Neural Network (MPNN)öůöüö}ö(hhîparentöhhhîsourceöNîlineöNubaî
attributesö}ö(îidsö]öîclassesö]öînamesö]öîdupnamesö]öîbackrefsö]öuîtagnameöhhhhhhîL/Users/futianfan/Downloads/spring2020/DeepPurpose/docs/source/notes/mpnn.rstöhKubh î
literal_blocköôö)üö}ö(hî,class DeepPurpose.models.MPNN(nn.Sequential)öh]öhî,class DeepPurpose.models.MPNN(nn.Sequential)öůöüö}ö(hhhh-ubah}ö(h]öh!]öh#]öh%]öh']öî xml:spaceöîpreserveöîforceöëîlanguageöîpythonöîhighlight_argsö}öuh)h+hh*hKhhhhubh î paragraphöôö)üö}ö(hîä`Message Passing Neural Network (MPNN) <https://www.biorxiv.org/content/10.1101/684662v3>`_ encode drug in its graph representation.öh]ö(h î referenceöôö)üö}ö(hî[`Message Passing Neural Network (MPNN) <https://www.biorxiv.org/content/10.1101/684662v3>`_öh]öhî%Message Passing Neural Network (MPNN)öůöüö}ö(hî%Message Passing Neural Network (MPNN)öhhJubah}ö(h]öh!]öh#]öh%]öh']öînameöî%Message Passing Neural Network (MPNN)öîrefuriöî0https://www.biorxiv.org/content/10.1101/684662v3öuh)hHhhDubh îtargetöôö)üö}ö(hî3 <https://www.biorxiv.org/content/10.1101/684662v3>öh]öh}ö(h]öîid1öah!]öh#]öî%message passing neural network (mpnn)öah%]öh']öîrefuriöh\uh)h]î
referencedöKhhDubhî) encode drug in its graph representation.öůöüö}ö(hî) encode drug in its graph representation.öhhDhhhNhNubeh}ö(h]öh!]öh#]öh%]öh']öuh)hBhh*hKhhhhubhC)üö}ö(hî"**constructor** create MPNN class.öh]ö(h îstrongöôö)üö}ö(hî**constructor**öh]öhîconstructoröůöüö}ö(hhhh~ubah}ö(h]öh!]öh#]öh%]öh']öuh)h|hhxubhî create MPNN class.öůöüö}ö(hî create MPNN class.öhhxhhhNhNubeh}ö(h]öh!]öh#]öh%]öh']öuh)hBhh*hKhhhhubh,)üö}ö(hî,__init__(self, mpnn_hidden_size, mpnn_depth)öh]öhî,__init__(self, mpnn_hidden_size, mpnn_depth)öůöüö}ö(hhhhŚubah}ö(h]öh!]öh#]öh%]öh']öh;h<h=ëh>îpythonöh@}öuh)h+hh*hKhhhhubh îbullet_listöôö)üö}ö(hhh]ö(h î list_itemöôö)üö}ö(hîe**mpnn_hidden_size** (int) - specify dimension of hidden layer in MPNN, e.g, mpnn_hidden_size = 256.öh]öhC)üö}ö(hh░h]ö(h})üö}ö(hî**mpnn_hidden_size**öh]öhîmpnn_hidden_sizeöůöüö}ö(hhhhÁubah}ö(h]öh!]öh#]öh%]öh']öuh)h|hh▓ubhîQ (int) - specify dimension of hidden layer in MPNN, e.g, mpnn_hidden_size = 256.öůöüö}ö(hîQ (int) - specify dimension of hidden layer in MPNN, e.g, mpnn_hidden_size = 256.öhh▓ubeh}ö(h]öh!]öh#]öh%]öh']öuh)hBhh*hKhh«ubah}ö(h]öh!]öh#]öh%]öh']öuh)hČhhęhhhh*hNubhş)üö}ö(hîF**mpnn_depth** (int) - specify depth of MPNN, e.g., mpnn_depth = 3.
öh]öhC)üö}ö(hîD**mpnn_depth** (int) - specify depth of MPNN, e.g., mpnn_depth = 3.öh]ö(h})üö}ö(hî**mpnn_depth**öh]öhî
mpnn_depthöůöüö}ö(hhhh▄ubah}ö(h]öh!]öh#]öh%]öh']öuh)h|hhěubhî6 (int) - specify depth of MPNN, e.g., mpnn_depth = 3.öůöüö}ö(hî6 (int) - specify depth of MPNN, e.g., mpnn_depth = 3.öhhěubeh}ö(h]öh!]öh#]öh%]öh']öuh)hBhh*hKhhďubah}ö(h]öh!]öh#]öh%]öh']öuh)hČhhęhhhh*hNubeh}ö(h]öh!]öh#]öh%]öh']öîbulletöî*öuh)hžhh*hKhhhhubhC)üö}ö(hîB**Calling functions** implement the feedforward procedure of MPNN.öh]ö(h})üö}ö(hî**Calling functions**öh]öhîCalling functionsöůöüö}ö(hhhj ubah}ö(h]öh!]öh#]öh%]öh']öuh)h|hj ubhî- implement the feedforward procedure of MPNN.öůöüö}ö(hî- implement the feedforward procedure of MPNN.öhj hhhNhNubeh}ö(h]öh!]öh#]öh%]öh']öuh)hBhh*hKhhhhubh,)üö}ö(hîforward(self, feature)öh]öhîforward(self, feature)öůöüö}ö(hhhj ubah}ö(h]öh!]öh#]öh%]öh']öh;h<h=ëh>îpythonöh@}öuh)h+hh*hKhhhhubhĘ)üö}ö(hhh]öhş)üö}ö(hî>**feature** (tuple of length 5)
* **todo**
*
öh]öh îdefinition_listöôö)üö}ö(hhh]öh îdefinition_list_itemöôö)üö}ö(hî2**feature** (tuple of length 5)
* **todo**
*
öh]ö(h îtermöôö)üö}ö(hî**feature** (tuple of length 5)öh]ö(h})üö}ö(hî**feature**öh]öhîfeatureöůöüö}ö(hhhjH ubah}ö(h]öh!]öh#]öh%]öh']öuh)h|hjD ubhî (tuple of length 5)öůöüö}ö(hî (tuple of length 5)öhjD ubeh}ö(h]öh!]öh#]öh%]öh']öuh)jB hh*hK)hj> ubh î
definitionöôö)üö}ö(hhh]öhĘ)üö}ö(hhh]ö(hş)üö}ö(hî**todo**öh]öhC)üö}ö(hjk h]öh})üö}ö(hjk h]öhîtodoöůöüö}ö(hhhjp ubah}ö(h]öh!]öh#]öh%]öh']öuh)h|hjm ubah}ö(h]öh!]öh#]öh%]öh']öuh)hBhh*hK#hji ubah}ö(h]öh!]öh#]öh%]öh']öuh)hČhjf ubhş)üö}ö(hhh]öh}ö(h]öh!]öh#]öh%]öh']öuh)hČhjf ubeh}ö(h]öh!]öh#]öh%]öh']öj j uh)hžhh*hK#hjc ubah}ö(h]öh!]öh#]öh%]öh']öuh)ja hj> ubeh}ö(h]öh!]öh#]öh%]öh']öuh)j< hh*hK)hj9 ubah}ö(h]öh!]öh#]öh%]öh']öuh)j7 hj3 ubah}ö(h]öh!]öh#]öh%]öh']öuh)hČhj0 hhhNhNubah}ö(h]öh!]öh#]öh%]öh']öj j uh)hžhh*hK"hhhhubeh}ö(h]öî#message-passing-neural-network-mpnnöah!]öh#]öh%]öhhah']öuh)h hhhhhh*hKhlKubah}ö(h]öh!]öh#]öh%]öh']öîsourceöh*uh)hîcurrent_sourceöNîcurrent_lineöNîsettingsöîdocutils.frontendöîValuesöôö)üö}ö(hNî generatoröNî datestampöNîsource_linköNî
source_urlöNî
toc_backlinksöîentryöîfootnote_backlinksöKî
sectnum_xformöKîstrip_commentsöNîstrip_elements_with_classesöNî
strip_classesöNîreport_levelöKî
halt_levelöKîexit_status_levelöKîdebugöNîwarning_streamöNî tracebacköłîinput_encodingöî utf-8-sigöîinput_encoding_error_handleröîstrictöîoutput_encodingöîutf-8öîoutput_encoding_error_handleröjÓ îerror_encodingöîUTF-8öîerror_encoding_error_handleröîbackslashreplaceöî
language_codeöîenöîrecord_dependenciesöNîconfigöNî id_prefixöhîauto_id_prefixöîidöî
dump_settingsöNîdump_internalsöNîdump_transformsöNîdump_pseudo_xmlöNîexpose_internalsöNîstrict_visitoröNî_disable_configöNî_sourceöh*î_destinationöNî
_config_filesö]öîpep_referencesöNîpep_base_urlöî https://www.python.org/dev/peps/öîpep_file_url_templateöîpep-%04döîrfc_referencesöNîrfc_base_urlöîhttps://tools.ietf.org/html/öî tab_widthöKîtrim_footnote_reference_spaceöëîfile_insertion_enabledöłîraw_enabledöKîsyntax_highlightöîlongöîsmart_quotesöłîsmartquotes_localesö]öîcharacter_level_inline_markupöëîdoctitle_xformöëî
docinfo_xformöKîsectsubtitle_xformöëîembed_stylesheetöëîcloak_email_addressesöłîenvöNubîreporteröNîindirect_targetsö]öîsubstitution_defsö}öîsubstitution_namesö}öîrefnamesö}öîrefidsö}öînameidsö}öî%message passing neural network (mpnn)öhesî nametypesö}öj łsh}ö(jŞ hheh_uî
footnote_refsö}öî
citation_refsö}öî
autofootnotesö]öîautofootnote_refsö]öîsymbol_footnotesö]öîsymbol_footnote_refsö]öî footnotesö]öî citationsö]öîautofootnote_startöKîsymbol_footnote_startöK î
id_counteröîcollectionsöîCounteröôö}öjţ KsůöRöîparse_messagesö]öh îsystem_messageöôö)üö}ö(hhh]öhC)üö}ö(hîHDuplicate implicit target name: "message passing neural network (mpnn)".öh]öhîLDuplicate implicit target name: ÔÇťmessage passing neural network (mpnn)ÔÇŁ.öůöüö}ö(hhhjC ubah}ö(h]öh!]öh#]öh%]öh']öuh)hBhj@ ubah}ö(h]öh!]öh#]öh%]öh']öheaîlevelöKîtypeöîINFOöîsourceöh*îlineöKuh)j> hhhhhh*hK
ubaîtransform_messagesö]öîtransformeröNî
decorationöNhhub.