Skip to main content

Home/ SmartGuys/ Group items tagged literate

Rss Feed Group items tagged

Ken Wakita

29.13. site - Site-specific configuration hook - Python 3.6.0 documentation - 0 views

    • Ken Wakita
       
      Anacondaの仮想環境に非標準パスを追加するには、[sys.prefix]/pythonX.Y/site-packages/[仮想環境名].pth を用意し、そこに非標準パスのリストを列挙すればよいと思う。ここは仮想環境に特化した site-packages なので、ほかの仮想環境のパスを汚さないのでよい。 ここでの設定は(たぶん )IntelliJ にも伝わると思う。 PYTHONPATH環境変数は仮想環境に特化した設定にならないし、設定が IntelliJ に伝わらないのでよろしくない。
  • Support for the “site-python” directory has been removed.
  • For example, suppose sys.prefix and sys.exec_prefix are set to /usr/local. The Python X.Y library is then installed in /usr/local/lib/pythonX.Y. Suppose this has a subdirectory /usr/local/lib/pythonX.Y/site-packages with three subsubdirectories, foo, bar and spam, and two path configuration files, foo.pth and bar.pth. Assume foo.pth contains the following:
  •  
    Pythonにおいて、非標準パッケージを参照させる方法のひとつ
Ken Wakita

C++ vs OCaml: Ray tracer comparison - 0 views

  •  
    レイトレーサを C++ と O'Caml で書いた例。Literate programming のよい素材かも。
Ken Wakita

2.3. Clustering - scikit-learn 0.18.1 documentation - 0 views

  • homogeneity: each cluster contains only members of a single class.
  • We can turn those concept as scores homogeneity_score and completeness_score. Both are bounded below by 0.0 and above by 1.0 (higher is better)
  • v_measure_score is symmetric
  • ...1 more annotation...
  • it can be used to evaluate the agreement of two independent assignments on the same dataset.
Ken Wakita

1.1. Python scientific computing ecosystem - Scipy lecture notes - 0 views

  • Julia
    • Ken Wakita
       
      Julia は Python 並の記述力と C に近い性能を誇るプログラミング言語で、次世代の科学技術計算の基盤として期待されているらしい。統計屋さん(たとえば、山下先生)も使い始めているようです。ただ、ぼくにとっては OpenGL のサポートがしっかりしていないと困るので、様子見中。
  • scikit-learn
    • Ken Wakita
       
      高野くんはscikit-learn の MDS の機能がショボくて scikit-learn のかわりに R を使っているらしい。でも、機械学習の大家の鈴木先生が日常的に scikit-learn を使っているようなので、その判断はどうなんだろう。。。
  • %run my_file.py
    • Ken Wakita
       
      Jupyter Notebook から Python スクリプトを起動できることを知らなかった!便利かも。
  • ...5 more annotations...
  • s
    • Ken Wakita
       
      %run したときの副作用が Jupyter Notebook に残されているなんて、素晴しすぎ!
  • %whos
    • Ken Wakita
       
      このセッションで定義されている変数の一覧かな?
  • the IPython console supports command history
  • Simply type object_name.<TAB> to view the object’s attributes
  • %debug allows you to enter post-mortem debugging
    • Ken Wakita
       
      %debug 重要じゃん!今度、使うべし。
1 - 4 of 4
Showing 20 items per page