Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61315228
rp.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 5, 21:42
Size
240 B
Mime Type
text/x-python
Expires
Tue, May 7, 21:42 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17494581
Attached To
R10607 weightmatrices
rp.py
View Options
# Random Projections
import
numpy
as
np
from
weightmatrices.utils
import
utils
def
get_weightmatrices_rp
(
data_matrix
,
n_h
):
N
=
data_matrix
.
shape
[
1
]
W
=
np
.
random
.
randn
(
n_h
,
N
)
W
=
utils
.
normalise_weightmatrix
(
W
)
return
W
Event Timeline
Log In to Comment