Skip to content

Commit

Permalink
Add requirements and travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeColtman committed Sep 15, 2018
1 parent 9470989 commit 2628ac0
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bartpy/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections import namedtuple
from typing import Any, MutableMapping, Set, Optional
from typing import Any, Set

import pandas as pd
import numpy as np
Expand Down
10 changes: 1 addition & 9 deletions bartpy/mutation.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
from abc import abstractmethod, ABC
from typing import List, Set, Generator, Optional, Union

import numpy as np
import pandas as pd

from bartpy.data import Data
from bartpy.errors import NoSplittableVariableException, NoPrunableNodeException
from bartpy.split import Split, sample_split_condition, SplitCondition
from abc import ABC
from bartpy.node import TreeNode, DecisionNode, LeafNode


Expand Down
1 change: 0 additions & 1 deletion bartpy/node.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import abstractmethod, ABC
from typing import List, Set, Generator, Optional, Union

import numpy as np
import pandas as pd
Expand Down
1 change: 0 additions & 1 deletion bartpy/proposer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import abstractclassmethod
from copy import deepcopy
from typing import Callable

import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion bartpy/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from bartpy.model import Model
from bartpy.mutation import TreeMutation, GrowMutation, ChangeMutation, PruneMutation
from bartpy.node import DecisionNode, LeafNode, TreeNode
from bartpy.node import LeafNode, TreeNode
from bartpy.proposer import Proposer
from bartpy.sigma import Sigma
from bartpy.tree import Tree, n_splittable_leaf_nodes, n_prunable_decision_nodes, mutate
Expand Down
2 changes: 1 addition & 1 deletion bartpy/split.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import ABC
from typing import List, Optional, Union
from typing import List, Optional
from copy import deepcopy

from bartpy.data import Data
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy
pandas
matplotlib
scipy
7 changes: 7 additions & 0 deletions travis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: python
python:
- "3.6"
script:
- pytest
install:
- pip install -r requirements.txt

0 comments on commit 2628ac0

Please sign in to comment.