Commit eda4ce1e authored by abster12's avatar abster12
Browse files

Merge branch 'master' of https://github.com/abster12/deepchem

update fork
parents 7a3f2c7c 4a8d1fe5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -21,7 +21,9 @@ install:
script:
- nosetests --with-flaky -a '!slow' --with-timer --with-coverage --cover-package=deepchem
  -v deepchem --nologcapture
- find ./deepchem | grep .py$ |xargs python -m doctest -v
- if [ $TRAVIS_PYTHON_VERSION == '3.5']; then
      find ./deepchem | grep .py$ |xargs python -m doctest -v;
  fi
- bash devtools/travis-ci/test_format_code.sh
after_success:
- echo $TRAVIS_SECURE_ENV_VARS
+3 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ sudo apt-get install -y libxrender-dev

### Using a conda environment
You can install deepchem in a new conda environment using the conda commands in scripts/install_deepchem_conda.sh
Installing via this script will ensure that you are **installing from the source**.

```bash
git clone https://github.com/deepchem/deepchem.git      # Clone deepchem source code from GitHub
@@ -69,9 +70,11 @@ the benefits and usage of conda environments. **Warning**: Segmentation faults c
via this installation procedure.

### Easy Install via Conda

```bash
conda install -c deepchem -c rdkit -c conda-forge -c omnia deepchem=1.3.1
```
**Note:** `Easy Install` installs the latest stable version of `deepchem` and _does not install from source_. If you need to install from source make sure you follow the steps [here](#using-a-conda-environment).

### Using a Docker Image
Using a docker image requires an NVIDIA GPU.  If you do not have a GPU please follow the directions for [using a conda environment](#using-a-conda-environment)
+2 −3
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ import torch.optim as optim
import random
import numpy as np
from sklearn.metrics import roc_auc_score
import scipy


def symmetric_normalize_adj(adj):
@@ -24,8 +23,8 @@ def symmetric_normalize_adj(adj):
    adj = adj[:n_atoms, :n_atoms]
    degree = np.sum(adj, axis=1)
    D = np.diag(degree)
    D_sqrt = scipy.linalg.sqrtm(D)
    D_sqrt_inv = scipy.linalg.inv(D_sqrt)
    D_sqrt = np.sqrt(D)
    D_sqrt_inv = np.linalg.inv(D_sqrt)
    sym_norm = D_sqrt_inv.dot(adj)
    sym_norm = sym_norm.dot(D_sqrt_inv)
    new_adj = np.zeros(orig_shape)
+1 −2
Original line number Diff line number Diff line
"""
Imports all submodules
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

+0 −1
Original line number Diff line number Diff line
"""
Process an input dataset into a format suitable for machine learning.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import os
Loading