Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2015104192
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
윤영빈
2020-10-17 22:57:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
006bbd6c5bea787748f429e585ff1ff77439f770
006bbd6c
1 parent
74ea5128
add simple comment
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
web/backend/yt8m/esot3ria/video_vector_generator.py
web/backend/yt8m/esot3ria/video_vector_generator.py
View file @
006bbd6
...
...
@@ -25,6 +25,8 @@ if __name__ == '__main__':
video_id
=
row
[
0
]
video_vector
=
np
.
zeros
(
100
)
for
segment_index
in
range
(
1
,
6
):
#get tag and weight from here
#use weight as input of non-linear function before this step
tag
,
weight
=
row
[
segment_index
]
.
split
(
":"
)
if
tag
in
tag_vectors
.
vocab
:
video_vector
=
video_vector
+
(
tag_vectors
[
tag
]
*
float
(
weight
))
...
...
Please
register
or
login
to post a comment