Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
exa_news_classificator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vasyl Bodnaruk
exa_news_classificator
Commits
41bb9e48
Commit
41bb9e48
authored
Aug 18, 2017
by
Tags
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed spaces
parent
0d6d7805
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
133 additions
and
128 deletions
+133
-128
codeStyleSettings.xml
.idea/codeStyleSettings.xml
+14
-0
model_data_analysis.py
model_data_analysis.py
+3
-12
news_classify_tag.py
news_classify_tag.py
+116
-116
No files found.
.idea/codeStyleSettings.xml
0 → 100644
View file @
41bb9e48
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectCodeStyleSettingsManager"
>
<option
name=
"PER_PROJECT_SETTINGS"
>
<value>
<option
name=
"ALIGN_MULTILINE_PARAMETERS_IN_CALLS"
value=
"true"
/>
<codeStyleSettings
language=
"Python"
>
<option
name=
"SPACE_BEFORE_METHOD_CALL_PARENTHESES"
value=
"true"
/>
</codeStyleSettings>
</value>
</option>
<option
name=
"PREFERRED_PROJECT_CODE_STYLE"
value=
"Default"
/>
</component>
</project>
\ No newline at end of file
model_data_analysis.py
View file @
41bb9e48
...
...
@@ -93,12 +93,13 @@ def save():
def
graph_results
(
in_data
,
title
=
''
):
# import numpy as np
from
pylab
import
figure
,
show
,
hist
from
pylab
import
figure
,
show
,
hist
,
savefig
data
=
np
.
asarray
(
in_data
)
figure
()
hist
(
data
,
bins
=
50
)
show
()
savefig
(
"fig.png"
)
# show()
def
text_clear
(
word
):
...
...
@@ -164,13 +165,3 @@ if __name__ == '__main__':
diff_dict_sets
=
set
(
data_dictionary
)
-
dict_standart
print
(
'
\n
The difference of extracted dictionary and common dictionary is'
,
len
(
diff_dict_sets
))
print
(
diff_dict_sets
)
diff_dict_sets1
=
set
(
data_dictionary
)
-
dict_standart1
print
(
'
\n
2
\n
The difference of extracted dictionary and common dictionary is'
,
len
(
diff_dict_sets1
))
print
(
diff_dict_sets1
)
print
(
"And the diff of sets are: "
,
len
(
diff_dict_sets1
^
diff_dict_sets
))
print
(
diff_dict_sets1
^
diff_dict_sets
)
diff_diff_dictionary
=
set
(
data_dictionary
)
-
dict_standart
-
dict_standart1
print
(
"If double diffs to do we get: "
,
len
(
diff_diff_dictionary
))
print
(
diff_diff_dictionary
)
\ No newline at end of file
news_classify_tag.py
View file @
41bb9e48
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment