mandrianova / mos-news

Хакатон ЛЦТ2021. Рекомендательная система новостей для пользователей mos.ru
MIT License
1 stars 2 forks source link

Ядро #3

Open mandrianova opened 3 years ago

mandrianova commented 3 years ago

Flask?

Сделать endpoints:

Также результаты должны быть направлены документом в соответствии с шаблоном result_task3.csv для проверки результатов модели.

Струкутура новости:

 0   id                       6554 non-null   int64         
 1   title                    6554 non-null   object        
 2   importance               4673 non-null   object        
 3   published_at             6554 non-null   datetime64[ns]
 4   created_at               6554 non-null   datetime64[ns]
 5   updated_at               6554 non-null   datetime64[ns]
 6   is_deferred_publication  5729 non-null   float64       
 7   status                   6554 non-null   object        
 8   ya_rss                   6554 non-null   int64         
 9   active_from              0 non-null      float64       
 10  active_to                0 non-null      float64       
 11  oiv_id                   5714 non-null   float64       
 12  search                   6554 non-null   int64         
 13  display_image            6554 non-null   int64         
 14  label                    115 non-null    object        
 15  icon_id                  21 non-null     float64       
 16  canonical_url            0 non-null      float64       
 17  canonical_updated_at     5729 non-null   datetime64[ns]
 18  is_powered               6554 non-null   int64         
 19  has_image                6554 non-null   int64         
 20  date                     6554 non-null   datetime64[ns]
 21  has_district             6554 non-null   int64         
 22  date_timestamp           6554 non-null   int64         
 23  tags                     6554 non-null   object        
 24  theme_id                 1048 non-null   float64       
 25  theme_ids                6554 non-null   object        
 26  themes                   6554 non-null   object        
 27  spheres                  6554 non-null   object        
 28  sphere                   6554 non-null   object        
 29  kind                     6554 non-null   object        
 30  is_oiv_publication       5729 non-null   float64       
 31  organizations            5729 non-null   object        
 32  updated_at_timestamp     5729 non-null   float64       
 33  created_at_timestamp     5729 non-null   float64       
 34  attach                   6554 non-null   object        
 35  active_from_timestamp    5729 non-null   float64       
 36  active_to_timestamp      5729 non-null   float64       
 37  image                    5893 non-null   object        
 38  counter                  0 non-null      float64       
 39  territory_area_id        2312 non-null   float64       
 40  territory_district_id    2312 non-null   float64       
 41  preview_text             5729 non-null   object        
 42  full_text                5729 non-null   object        
 43  url                      6554 non-null   object        
 44  preview                  825 non-null    object        
 45  text                     825 non-null    object        
 46  promo                    825 non-null    float64       
 47  images                   825 non-null    object        
dtypes: datetime64[ns](5), float64(16), int64(8), object(19)
memory usage: 2.4+ MB
volchugin commented 3 years ago

Да, flask - супер!)

mandrianova commented 3 years ago

https://github.com/mandrianova/mos-news/blob/master/requirements.txt нужно навести порядок тут

volchugin commented 3 years ago

похоже неактуально уже... да?