tag:blogger.com,1999:blog-1625043994572710700.comments2023-06-30T11:28:37.212+03:00On The HighwaySergey Kishchenkohttp://www.blogger.com/profile/13451038740185023562noreply@blogger.comBlogger189125tag:blogger.com,1999:blog-1625043994572710700.post-4711685721819514122021-07-06T08:40:08.466+03:002021-07-06T08:40:08.466+03:00містер Бенджамін Лі був ключовим партнером у нашом...містер Бенджамін Лі був ключовим партнером у нашому успіху та безцінним активом для зростання та майбутнього нашої компанії, містер Бенджамін та його позикова компанія інвестували у мій бізнес із позикою 1000000 доларів у розмірі 2 натомість, і це було дуже приємно працювати з ним, тому що я не знаю, що б я зробив без допомоги пана Бенджаміна та його позикової компанії, пана Бенджаміна контактна електронна адреса: 247officedept@gmail.com та whatsapp: + 1-989-394-3740Dana Floreshttps://www.blogger.com/profile/00221583725012759598noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-2474452282557425972017-08-20T15:51:57.934+03:002017-08-20T15:51:57.934+03:00Hi Sergey,
Thank you so much for taking the time ...Hi Sergey,<br /><br />Thank you so much for taking the time to answer these questions, it helped a lot!Anonymoushttps://www.blogger.com/profile/16498160487321213348noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-10796629961603789092017-08-20T14:19:01.682+03:002017-08-20T14:19:01.682+03:00MathJAX is very broken, reposting the second part ...MathJAX is very broken, reposting the second part of the answer.<br />As far as I remember, `\mu_\theta(x)` is "self.policy_network" in the code and `\mu_{old}` is "self.prev_policy". "self.kl_divergence_op" is how KL-divergence is computed. `M` from the article is the second derivation of the KL-divergence and that's what is computed from "self.kl_divergence_op" and is finally used in "fisher_vector_product" function.Sergey Kishchenkohttps://www.blogger.com/profile/13451038740185023562noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-23475461026231658112017-08-20T14:13:27.149+03:002017-08-20T14:13:27.149+03:00I haven't touched this code for almost a year ...I haven't touched this code for almost a year so some of my understanding of TRPO may have faded. But here you go:<br />1) This is not directly related to TRPO but is related to the conjugate gradients method. I've seen some different damping methods when conjugate gradients are involved and this is one of them. Removing this part should not break the algorithm in theory but in reality we start hitting the safeguard and this breaks the line_search and slows down the learning (compare https://gym.openai.com/evaluations/eval_VlBZIU6zTVu5PXVr9Ntdkg that uses damping and https://gym.openai.com/evaluations/eval_Nyl6z8QWTi2jb1jlsY2vBA that doesn't). There is a short "discussion" about introducing this kind of damping in the repo I picked up the damping (and most of the other ideas) from: https://github.com/wojzaremba/trpo/issues/2<br />2) As far as I remember, $mu_\theta(x)$ is `self.the policy_network` in the code and $\mu_{old}$ is `self.prev_policy`. `self.kl_divergence_op` is how KL-divergence is computed. `M` from the article is the second derivation of the KL-divergence and that's what is computed from `self.kl_divergence_op` and is finally used in `fisher_vector_product`.Sergey Kishchenkohttps://www.blogger.com/profile/13451038740185023562noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-66387433224461127432017-08-20T12:08:46.568+03:002017-08-20T12:08:46.568+03:00Thanks for a nice blog post and the code. I have f...Thanks for a nice blog post and the code. I have followed the code and have two questions:<br /><br />1) Why are you using the conj_grads_damping (=0.1)? Is this related somehow to conjugate gradients in general, or something in TRPO? I've seen something like it in general conjugate gradients, but then they have a convex combination like (1-conj_grads_damping) * A + conj_grads_damping * B. <br /><br />2) Do you understand what's going on in the TRPO appendix C.1 "Computing the Fisher-Vector Product", when they introduce the mean-vector mu? I don't understand the weird kl-divergence discussion there (using some small kl, rather than D_kl etc..). And if you did understand that part, is it somehow apparent in the code too?<br /><br />Sincerely,<br />AleksisAnonymoushttps://www.blogger.com/profile/16498160487321213348noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-85486487637171520612016-09-07T10:45:28.102+03:002016-09-07T10:45:28.102+03:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/04748293294555322958noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-62932629923962943532013-04-24T12:51:42.010+03:002013-04-24T12:51:42.010+03:00asterisk 1.8
pysaynumber.agi,113,ru.conf: Failed t...asterisk 1.8<br />pysaynumber.agi,113,ru.conf: Failed to execute '/var/lib/asterisk/agi-bin/pysaynumber.agi': Exec format error<br />("трубы" при вызове заменены запятыми по требованию версии астериска)<br />почему Exec format error?Anonymoushttps://www.blogger.com/profile/08170190709668661060noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-38844773631552089042013-04-24T12:50:40.824+03:002013-04-24T12:50:40.824+03:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/08170190709668661060noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-54010511483851380792013-04-20T01:38:09.972+03:002013-04-20T01:38:09.972+03:00Много времени занимает =(Много времени занимает =(Владимир Кораблевhttps://www.blogger.com/profile/00980108993467214573noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-21912773643651837062013-04-11T09:43:32.033+03:002013-04-11T09:43:32.033+03:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-26923253887064312492013-02-05T13:46:22.164+02:002013-02-05T13:46:22.164+02:00This comment has been removed by a blog administrator.toptan bothttp://www.toptanbot.netnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-76965216519902229452013-02-05T12:15:01.177+02:002013-02-05T12:15:01.177+02:00This comment has been removed by a blog administrator.toptan monthttp://www.toptanmont.netnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-25966929109521887812012-10-10T09:44:34.094+03:002012-10-10T09:44:34.094+03:00На 3 Питоне:
import math
math.factorial(500000)
...На 3 Питоне:<br /><br />import math<br />math.factorial(500000)<br /><br />За 22 секунды...diversenoknoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-48659111249955740452012-07-22T16:54:53.449+03:002012-07-22T16:54:53.449+03:00"Exception Location: /usr/local/lib/python2.7..."Exception Location: /usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/contrib/admin/views/main.py in get_filters, line 122"<br />Убило =))))Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-80519992209158876092012-05-29T23:30:25.000+03:002012-05-29T23:30:25.000+03:00Есть известная байка о том, что в NSA (Агентство Н...Есть известная байка о том, что в NSA (Агентство Национальной Безопасности США, контрразведка) есть внутреннее предписание - приобретать компы только с реализованной в железе POPCNT, для криптоанализа. Подробней о применимости population count можно почитать здесь - http://en.wikipedia.org/wiki/Hamming_weightSergey Kishchenkohttps://www.blogger.com/profile/13451038740185023562noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-17622546772517887792012-05-29T23:20:50.363+03:002012-05-29T23:20:50.363+03:00А интересно, зачем такую инструкцию сделали? В как...А интересно, зачем такую инструкцию сделали? В каких задачах требуется считать количество битов?Dmitryhttps://www.blogger.com/profile/09876968556571551632noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-52771051366337633142012-05-16T23:03:59.331+03:002012-05-16T23:03:59.331+03:00Hi Thierry,
SciTE-Ru project accepted the patch, ...Hi Thierry,<br /><br />SciTE-Ru project accepted the patch, so you can use it there. I don't use SciTE for a long time so I don't have a patch that is applicable to a current SciTE version. Have you considered switching to other text editor? Geany is quite nice and it uses Scintilla internally. Sublime Text 2 is awesome, but it is not open sourced though.Sergey Kishchenkohttps://www.blogger.com/profile/13451038740185023562noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-20347521994227425022012-05-16T09:47:36.052+03:002012-05-16T09:47:36.052+03:00Спасибо.
Современный вариант в Django Version: 1.4...Спасибо.<br />Современный вариант в Django Version: 1.4 (может, кому пригодится) -<br />filters.py<br />from django.contrib.admin.filters import DateFieldListFilter, FieldListFilter<br /><br />class MyDateFieldIntervalFilter(DateFieldListFilter): <br /> def __init__(self, f, request, params, model, model_admin,field_path):<br /> super(MyDateFieldIntervalFilter, self).__init__(f, request, params, model, model_admin, field_path)<br /> self.field_generic = '%s__' % self.field.name<br /><br /> is_datetime_interval_filter = True <br /><br /> def get_output_dict(self,cl):<br /> p = cl.params.copy()<br /> return {<br /> 'field_name': self.field.name, <br /> 'query_str': iri_to_uri(cl.get_query_string(remove=["%s__lte"%self.field.name,"%s__gte"%self.field.name])),<br /> 'gte_old_value': p.get('%s__gte'%self.field.name,''),<br /> 'lte_old_value': p.get('%s__lte'%self.field.name,''),<br /> 'field_title':self.field.verbose_name<br /> } <br /> <br />FieldListFilter.register(lambda f: isinstance(f, models.DateField), MyDateFieldIntervalFilter)<br /><br />admin.py<br />from django.contrib import admin<br />from myapp.models import Base<br />from myapp.filters import MyDateFieldIntervalFilter<br />class BaseAdmin(admin.ModelAdmin):<br /> list_filter = (<br /> ('created_date', MyDateFieldIntervalFilter), <br /> )<br /><br />переопределенный шаблон админки- из примера выше изменяется только 1 строка с {% filter cl spec %} -<br /><br />{% for spec in cl.filter_specs %}<br />{% if spec.is_datetime_interval_filter %}<br />{% datetime_interval_filter cl spec %}<br />{% else%}<br />{% admin_list_filter cl spec %}<br />{% endif %}<br />{% endfor %}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-66873396547277555852012-05-10T08:52:19.938+03:002012-05-10T08:52:19.938+03:00@krocozabr
Повторюсь, "...начиная с 23-го мар...@krocozabr<br />Повторюсь, "...начиная с 23-го марта 2012 года, с релизом Django 1.4 данную статью можно считать окончательно устаревшей. Теперь стоит смотреть сюда: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter ..."Sergey Kishchenkohttps://www.blogger.com/profile/13451038740185023562noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-76652455595413441022012-05-10T08:50:40.338+03:002012-05-10T08:50:40.338+03:00Как бы это исправить?
Django Version: 1.4
Excepti...Как бы это исправить?<br />Django Version: 1.4<br />Exception Type: TypeError<br />Exception Value: <br /><br />__init__() got an unexpected keyword argument 'field_path'<br /><br />Exception Location: /usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/contrib/admin/views/main.py in get_filters, line 122Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-54659812420818087372012-05-04T10:42:26.903+03:002012-05-04T10:42:26.903+03:00Да, начиная с 23-го марта 2012 года, с релизом Dja...Да, начиная с 23-го марта 2012 года, с релизом Django 1.4 данную статью можно считать окончательно устаревшей. Теперь стоит смотреть сюда: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filterSergey Kishchenkohttps://www.blogger.com/profile/13451038740185023562noreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-12748424243216102432012-05-04T10:34:12.536+03:002012-05-04T10:34:12.536+03:00Ticket #5833 (closed Bug: fixed)
https://code.dja...Ticket #5833 (closed Bug: fixed) <br />https://code.djangoproject.com/ticket/5833Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-59973231159168269362012-05-04T10:31:21.282+03:002012-05-04T10:31:21.282+03:00хороший пример, спасибо.
Жаль, что старый.хороший пример, спасибо.<br />Жаль, что старый.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-48199414089793900902012-03-19T16:33:46.404+02:002012-03-19T16:33:46.404+02:00Спасибо за ссылку на полную Geany. Я работаю в шк...Спасибо за ссылку на полную Geany. Я работаю в школе, мне надо, чтобы все ученики смогли по-простому поставить программу на свой компьютер, а предыдущие версии не позволяли это делать. теперь наши проблемы решены, благодаря Вам и Вашей ссылке на действительно ценный дистрибутив.<br />Ольга.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1625043994572710700.post-19234402347040206642012-03-15T12:16:18.130+02:002012-03-15T12:16:18.130+02:00Hi Sergey,
I think I had this patched installed i...Hi Sergey,<br /><br />I think I had this patched installed in my previous job Scite configuration. Now that I changed computer, I would like to have it installed too, it is very comfortable and enables to have long and looking alike variable names. <br />But the links you had are no longer valid. Does it mean that Neil has accepted them ? If yes, what should I do to have it working ? If not, where can I find this patch ?<br /><br />Thanks a lot,<br /><br />Thierry Kauffmann, from France.Anonymousnoreply@blogger.com