タグ

pythonに関するniamのブックマーク (30)

  • PythonでA*(A-Star)アルゴリズム - Pashango’s Blog

    今回はA*アルゴリズムをPythonでやってみます。 ゲームプログラマの間では、もはや常識となりつつある最短経路問題解決アルゴリズムです。 A*は、古典的手法である「ダイクストラ法」を改良したものです。 スタート地点からノードnを通ってゴールに辿り付くとき、最短距離をf(n)とすると、 f(n) = g(n) + h(n) とすることができます、g(n)は「スタートからノードnまでの最短距離」、h(n)は「ノードnからゴールまでの最短距離」です。 でも、最初から適切なg(n)とh(n)が判ってるなら苦労しませんよね。 だから、テキトーな予測値を使って、最短経路をある程度予測して効率的に経路探索をしてみようという事です。 テキトーな予測値を使った最短経路距離をf*(n)とすると f*(n) = g*(n) + h*(n) となります、f*(n)を求めるためにテキトーなg*(n)とh*(n)を

    PythonでA*(A-Star)アルゴリズム - Pashango’s Blog
  • Google Python スタイルガイド


      Google Python Style Guide Revision 2.29   CC-By 3.0   Amit Patel Antoine Picard Eugene Jhong Jeremy Hylton Matt Smart Mike Shields  Kosei Kitahara  issue   @Surgo   Python  Google 使  Python 
  • VimのPython向け設定 - climpyの日記


     Vi Emacs EmacsEmacs Vi(Vim)使 VimPython便使  http://wiki.python.org/moin/ViImproved%20%28Vim%29 ~/.vimrc autocmd BufRead,BufNewFile *.py syntax on autocmd BufRead,BufNewFile *.py set aiautocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,with,try,except
    VimのPython向け設定 - climpyの日記
  • 「自然言語処理は Python がいちばん」について


    http://d.hatena.ne.jp/mamoruk/20090327/p1 python使 python使WEBpython S2Struts(JAVA)WEB  mecab使Unicode使使使 senna使C++
    「自然言語処理は Python がいちばん」について
    niam
    niam 2009/08/29
    企業の方からの貴重な意見.Python云々よりも,NLTKを使わず自社開発しているという部分の方に注目した.自社開発は高コストだが,それでも出来合いのルーチンを使うよりメリットがあるとみなされているのか.
  • Steve Krenzel - 18. Distributed Computing: MapReduce and HashFold

    This is a post about HashFold, a theoretical framework (for now) that is suited to performing the same types of distributed computation that MapReduce can perform, but improves upon MapReduce both in runtime and memory usage. This is quite a claim so I'm putting the idea out there for public scrutiny. If you're familiar with MapReduce, HashFold does away with sorting values and the concept of a co

  • PythonのGCについて

    PythonのGarbageCollection 原文 Neil Schemenauer (翻訳:中村 成洋) ポータブルなGarbageCollection 概要 循環参照はリスト,タプル,インスタンス,クラス,辞書,関数に伴って見つかります. インスタンスの __del__ メソッドは正常に取り扱われます. 新しいタイプをGCの対象に追加するのは簡単です. このGCが有効なPythonは,通常のPythonとバイナリ互換です. 世代別GCが動いています(今は三世代).このオーバヘッドをpybenchで測ったら,大体4%くらい占めていました. 実質的に,すべての拡張モジュールは,不変に(私は,標準的な配布において 新しいものとcPickleを修正しなければなりませんでした)ならなければなりま せん.gcと呼ばれている新しいモジュールは,コレクターを調整して,デバッ ギングオプションをセッ

  • プログラミングを教えるということ:中学生プログラマーの感想録 - CNET Japan


    Good  稿 Python Python 使CVisualBasicC#Java Python  PythonPCPython
  • SpringPython 1.0登場、SpringのパワーをPythonへ | エンタープライズ | マイコミジャーナル


    SpringSource 1()Spring PythonSpring Python 1.0.0 GASpring PythonSpring FrameworkPythonJavaSpring FrameworkPython Spring Python - Reference Documentation使APIPython: package springpython PythonGoogle App EngineSpr
  • ダイクストラ法 - Bug's Groove


     24  - naoya  使(...) minheap MinPriorityQueue 使( relax ) s -> y -> t (8) s -> y -> t -> x (9) s -> y (5) s -> y -> z (7)  (6) 
    ダイクストラ法 - Bug's Groove
  • Stephen Marsland

    This webpage contains the code and other supporting material for the textbook "Machine Learning: An Algorithmic Perspective" by Stephen Marsland, published by CRC Press, part of the Taylor and Francis group. The first edition was published in 2009, and a revised and updated second edition is due out towards the end of 2014. The book is aimed at computer science and engineering undergraduates studi

  • Google Developer Day 2009で学んだ Java版Google App Engineの勘所


    69Google Developer Day 2009JavaGoogle App Engine稿 Google Developer DayGoogleGoogle JapanadvocateAPI ExpertGoogleGoogle Google App Engine 
    Google Developer Day 2009で学んだ Java版Google App Engineの勘所
  • クラスカルのアルゴリズム - naoyaのはてなダイアリー

    昨年からはじめたアルゴリズムイントロダクションの輪講も終盤に差し掛かり、残すところ数章となりました。今週は第23章の最小全域木でした。辺に重みのあるグラフで全域木を張るとき、その全域木を構成する辺の合計コストが最小の組み合わせが最小全域木です。 アルゴリズムイントロダクションでは、クラスカルのアルゴリズム、プリムのアルゴリズムの二点が紹介されています。いずれも20世紀半ばに発見された古典的なアルゴリズムです。 二つのうち前者、クラスカルのアルゴリズムは、コスト最小の辺から順番にみていって、その辺を選んだことで閉路が構成されなければ、それは安全な辺であるとみなし、最小全域木を構成する辺のひとつとして選択します。これを繰り返しているうちに最小全域木が構成されるというアルゴリズムです。 今日はクラスカルのアルゴリズムを Python で実装してみました。扱うグラフは書籍の例を使ってみました。以下

    クラスカルのアルゴリズム - naoyaのはてなダイアリー
  • Digital News and Articles at Your Fingertips | Dan Wein Reb

    Good business strategy is all about creating value for your company. It’s about finding ways to improve your bottom line by increasing revenue, reducing costs, or both. But what does that mean in practical terms? Here are a few examples of strategies that can help improve your business bottom line:…

    Digital News and Articles at Your Fingertips | Dan Wein Reb
    niam
    niam 2009/06/03
    そういえば、僕がLispでプログラムを提出した始めての授業は、プログラミングの授業じゃなくて、ロボットの授業だったなぁ。
  • Bigtableの使い方教えます - ひがやすを技術ブログ


    GAE/J使RDBMSBigtable JOIN使WHEREOR使使 BigtableKVS(Key Value Store) AS400AS400IBM(?)Systemi() AS400()()()
    Bigtableの使い方教えます - ひがやすを技術ブログ
  • たけまる / Google App Engine のデータストアは Bigtable をどのように使っているのか


    _ Google App Engine  Bigtable使 [gae][bigtable] Google App Engine (GAE) 2GFS  BigtableBigtable GAE  Bigtable multi dimensional sorted table primary key (row key)  GAE  GAE Bigtable使 # 
  • 全文検索エンジンを試作してみたよ - やればできる子の日記


    & GAEGAEGoogletwitter Introduction to Information RetrievalPDFIIR1使使() import logging import re from urllib import urlencode import wsgiref.handlers from google.appengine
    全文検索エンジンを試作してみたよ - やればできる子の日記
  • pyclewn

    Get notifications on updates for this project. Get the SourceForge newsletter. Get newsletters and notices that include site news, special offers and exclusive discounts about IT products & services. I understand by clicking below I am agreeing to the SourceForge Terms and Conditions. I agree to receive these communications from SourceForge.net. I understand that I can withdraw my consent at anyti

  • [Python] PythonにおけるCursesプログラミング - SumiTomohiko's blog


     Curses ProgrammingwithPython PythonCurses A.M. Kuchling (amk@amk.ca), Eric S. Raymond (esr@thyrsus.com)  Python 2.xcurses使 http://www.python.org/doc/howtoPython HOWTO  1 curses? 1.1 Pythoncurses 2 curses34 4.1 56 .
    [Python] PythonにおけるCursesプログラミング - SumiTomohiko's blog
  • Python, free PDF download

    Build an Eclipse development environment for Perl, Python, andPHP Section2. Introducing DLTK and the DLTK editor Eclipse offers many capabilities for building custom development tools, but they're not easy touse or understand. www6.software.ibm.com Embed Pythonscripting in C applications Format Python TypeCtype Notes s String char* Null terminates string i Integer int f Float float (items) Tuple V

  • 本文抽出ライブラリWebstemmerのblog本文抽出用特化スクリプト「blogstemmer」を書いてみた - FutureInsight.info


    Webstemmer使 Webstemmer - FutureInsight.info Webstemmerblog Webstemmer Webstemmer  URL  Webstemmerblogblogstemmer
    本文抽出ライブラリWebstemmerのblog本文抽出用特化スクリプト「blogstemmer」を書いてみた - FutureInsight.info