dd19ed2a7127ad2f3ba2bf813461d07f0d6131c5,python/hypertools/align.py,,align,#Any#,26

Before Change



	assert all(isinstance(i, np.ndarray) for i in data) and type(data) is list and len(data)>1, "Input must be list of arrays"
	data = [i.T for i in data]
	srm = SRM(features=data[0].shape[0])
	fit = srm.fit(data)

	return [i.T for i in srm.transform(data)]

After Change



	assert all(isinstance(i, np.ndarray) for i in data) and type(data) is list and len(data)>1, "Input must be list of arrays"
	data = [i.T for i in data]
	srm = SRM(features=np.min([i.shape[0] for i in data]))
	fit = srm.fit(data)

	return [i.T for i in srm.transform(data)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: ContextLab/hypertools
Commit Name: dd19ed2a7127ad2f3ba2bf813461d07f0d6131c5
Time: 2016-12-15
Author: andrew.heusser@gmail.com
File Name: python/hypertools/align.py
Class Name:
Method Name: align


Project Name: ContextLab/hypertools
Commit Name: 78979b31acf898de8604036842f722ebe40c3dbf
Time: 2016-12-15
Author: andrew.heusser@gmail.com
File Name: python/hypertools/align.py
Class Name:
Method Name: align


Project Name: ContextLab/hypertools
Commit Name: c0b17e682bc598aa81b986d90da448e8b8e3b95c
Time: 2016-12-15
Author: andrew.heusser@gmail.com
File Name: python/hypertools/align.py
Class Name:
Method Name: align


Project Name: ContextLab/hypertools
Commit Name: 54371fa691d62c385889648267acbd32e55f25d2
Time: 2016-12-15
Author: andrew.heusser@gmail.com
File Name: python/hypertools/align.py
Class Name:
Method Name: align