Skip to content

Commit

Permalink
automatically generate readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhe06 committed Mar 28, 2017
1 parent c1cf722 commit e8c2c1a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ FM因子分解机模型的相关paper,在计算广告领域非常实用的模
* [fastFM- A Library for Factorization Machines.pdf](https://github.com/wzhe06/Ad-papers/blob/master/Factorization%20Machines/fastFM-%20A%20Library%20for%20Factorization%20Machines.pdf) <br />
* [FM PPT by CMU.pdf](https://github.com/wzhe06/Ad-papers/blob/master/Factorization%20Machines/FM%20PPT%20by%20CMU.pdf) <br />
* [libfm-1.42.manual.pdf](https://github.com/wzhe06/Ad-papers/blob/master/Factorization%20Machines/libfm-1.42.manual.pdf) <br />

* [Scaling Factorization Machines to Relational Data.pdf](https://github.com/wzhe06/Ad-papers/blob/master/Factorization%20Machines/Scaling%20Factorization%20Machines%20to%20Relational%20Data.pdf) <br />


Expand Down
5 changes: 0 additions & 5 deletions generateReadme.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
for line in all_lines:
if catalog_flag != 1:
out_file.write(line)
#print line
if line.startswith("##"):
catalog_flag = 1

Expand All @@ -47,24 +46,20 @@
if line.startswith("###"):
paper_class_flag = 1
paper_class_name = line[3:].strip()
#* [Ad Click Prediction a View from the Trenches.pdf](https://github.com/wzhe06/Ad-papers/blob/master/CTR%20Prediction/Ad%20Click%20Prediction%20a%20View%20from%20the%20Trenches.pdf)

github_root = "https://github.com/wzhe06/Ad-papers/blob/master/"
all_dir = os.listdir("./")
for one_dir in all_dir:
if os.path.isdir(one_dir) and not one_dir.startswith('.'):
out_file.write("\n### " + one_dir+"\n")
print "one_dir", one_dir.strip()
if one_dir.strip() in paper_class_map:
out_file.write(paper_class_map[one_dir.strip()] + "\n")
all_sub_files = os.listdir(one_dir)
for one_file in all_sub_files:
if not os.path.isdir(one_file) and not one_file.startswith('.'):
out_file.write("* [" + one_file + "]("+github_root + urllib.quote(one_dir.strip())+"/"
+ urllib.quote(one_file.strip())+") <br />\n")
print one_file.strip()
if one_file.strip() in paper_map:
out_file.write(paper_map[one_file.strip()] + "\n")

print paper_map
out_file.close()

0 comments on commit e8c2c1a

Please sign in to comment.