You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Welcome to Python for biologists Here you'll find resources for learning to program in Python for people with a background in biology Now published: Biological Data Exploration. A complete guide to cleaning, manipulating and visualizing complex biological datasets with Python. If you're looking for the exercise files for any of my books, click here. If you want to get started with writing Python c
Pythonにおける「許されざる悪事」を避けるために 許されざる悪事というものが存在する 許されざる悪事 モジュールを import するだけでグローバルな値が設定されるというもの。 「import の順番に依存した処理ほど不愉快なものはない。こういった依存性を持つ処理は非常に脆弱で、ちょっとしたことですぐエラーとなってしまい、メンテナンスしにくいコードになってしまうものなのである。」 ぁっぉ やってみよう importに依存しない処理を書いてみましょう: # In mymodule.py hoge = None def setup_hoge(): global hoge hoge = 'hoge' としてアプリケーションの設定をする処理のうちにsetup_hogeを呼び出してやります。 (まぁ paste.app_factory に指定する main 関数とかそんなとこで呼ぶ) だめだっ
Asim Ihsan (use arrow keys or space bar to advance, 'O' for overview) Contents What, why Time - where, how often Memory - how much, of what type Web frameworks Contents What, why Time - where, how often Memory - how much, of what type Web frameworks What, why Want to know what a programme is doing Debugging Optimisation Deterministic vs. statistical profiling Contents What, why Time - where, how o
At HSR, I'm currently enrolled in a course about neural networks and machine learning. One of the simplest forms of a neural network model is the perceptron. Background Information A perceptron classifier is a simple model of a neuron. It has different inputs ($x_1$...$x_n$) with different weights ($w_1$...$w_n$). $$s = \sum_{i=0}^n w_i \cdot x_i$$The weighted sum $s$ of these inputs is then passe
Invoke は簡単に言えばMakeやRake的なものです。 まだベータ的な感じですが、今後 Fabric にも 取り入れられていくみたい です。 同じような用途に pynt とかもあります。今日はさわりだけ。 Usage 以下のようなMakefileがあったとして、Invoke用に置き換えてみます。 all: python setup.py build .PHONY: test test: nosetests example: make clean; easy_install -ZU . cd examples && python store.py && python search.py && python remove_and_search.py pypireg: python setup.py register python setup.py sdist upload clean:
python で複数プロセス立ち上げてそれぞれのコマンドの結果を非同期に処理するのどうやったらいいんだろ— ねじめ (@drillbits) October 3, 2013 ていうのを見かけたので殺伐とした心を癒すためにやってみる心。 やりたい事 Pythonスクリプトから複数外部コマンドを実行 実行結果を非同期に処理する 割とお手軽にやりたい。 よしググる(クズやろう) asynchronous - How can I run an external command asynchronously from Python? - Stack Overflow あった。 試してみる それぞれ 1秒, 2秒, 3秒まってprintするようなスクリプトを3つ用意 # こんな感じ from time import sleep sleep(1) print "echo1" これを参考のまんま下記のよう
Tools for the Network Warriors (formerly Python for Network Engineers) I recently joined A10 Networks as Professional Services Engineer based in the Pacific Northwest. Of course, the first thing I looked for is how to use Python to automate configuration tasks on A10. A quick search shows that A10 has an aXAPI interface that utilizes REST Web services calls to make configuration changes. More info
In reality, logging is important. When you transfer money, there are transfer records. When an airplane is flying, black box (flight data recorder) is recording everything. If something goes wrong, people can read the log and has a chance to figure out what happened. Likewise, logging is important for system developing, debugging and running. When a program crashes, if there is no logging record,
A few weeks ago Google released some code to convert words to vectors called word2vec. The company I am currently working on does something similar and I was quite amazed by the performance and accuracy of Google's algorithm so I created a simple python wrapper to call the C code for training and read the training vectors into numpy arrays, you can check it out on pypi (word2vec). At the same time
Tutorial: What is WordNet? A Conceptual Introduction Using Python In short, WordNet is a database of English words that are linked together by their semantic relationships. It is like a supercharged dictionary/thesaurus with a graph structure. TextBlob 0.7 (changelog) now integrates NLTK's WordNet interface, making it very simple to interact with WordNet. This tutorial is a gentle introduction to
Working with hugedomains.com was a quick and easy process. We got to speak to multiple real people located in Colorado without having to wait on hold! Our only complaint was we felt we had to overpay more than this particular domain was worth, and we weren't able to negotiate it down to a level that we felt was fair. However, payment and delivery were seamless, and within a few hours we had all of
Quantitative Economics¶ This website presents a series of free lectures on quantitative economic modeling, designed and written by John Stachurski and Thomas J. Sargent. The primary programming language is Python. Acknowledgements: These lectures have benefitted greatly from comments and suggestion from our colleagues, students and friends. Special thanks go to Anmol Bhandari, Jeong-Hun Choi, Chas
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く