a0a2a65ddbcd5e5f27ca02bf0607f718e415d370,pyinterpret/tests/test_data.py,TestData,test_1D_numpy_array,#TestData#,34
Before Change
ensure Dataset(data) works when data is 1D np.ndarray
array_1d = np.random.normal(0, 1, size=self.n)
data_set = DataSet(array_1d)
def test_2D_numpy_array(self):
After Change
feature_id = 0
array_1d = self.X[:, feature_id][:, np.newaxis]
feature_names = [self.feature_names[feature_id]]
data_set = DataSet(array_1d,
feature_names=feature_names,
index=self.index,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: datascienceinc/Skater
Commit Name: a0a2a65ddbcd5e5f27ca02bf0607f718e415d370
Time: 2017-03-20
Author: aikramer2@gmail.com
File Name: pyinterpret/tests/test_data.py
Class Name: TestData
Method Name: test_1D_numpy_array
Project Name: BYU-PCCL/holodeck
Commit Name: 41c0d7d1e2d5cded62b7d338a07560e8f94dd695
Time: 2018-05-03
Author: 32994869+mitchneutron@users.noreply.github.com
File Name: example.py
Class Name:
Method Name: editor_example
Project Name: tiberiu44/TTS-Cube
Commit Name: 4a6cb19fc21993fe0505f3962da6bdfa94de4a0a
Time: 2018-11-10
Author: tibi@racai.ro
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: synthesize
Project Name: glm-tools/pyglmnet
Commit Name: c06ed12c51cce046e7a6faa8876c0b26e3e02b11
Time: 2016-04-27
Author: daniel.acuna@northwestern.edu
File Name: pyglmnet.py
Class Name: glm
Method Name: fit