286 resultados para python
Resumo:
In this paper we present pyktree, an implementation of the K-tree algorithm in the Python programming language. The K-tree algorithm provides highly balanced search trees for vector quantization that scales up to very large data sets. Pyktree is highly modular and well suited for rapid-prototyping of novel distance measures and centroid representations. It is easy to install and provides a python package for library use as well as command line tools.
Resumo:
Markov chain Monte Carlo (MCMC) estimation provides a solution to the complex integration problems that are faced in the Bayesian analysis of statistical problems. The implementation of MCMC algorithms is, however, code intensive and time consuming. We have developed a Python package, which is called PyMCMC, that aids in the construction of MCMC samplers and helps to substantially reduce the likelihood of coding error, as well as aid in the minimisation of repetitive code. PyMCMC contains classes for Gibbs, Metropolis Hastings, independent Metropolis Hastings, random walk Metropolis Hastings, orientational bias Monte Carlo and slice samplers as well as specific modules for common models such as a module for Bayesian regression analysis. PyMCMC is straightforward to optimise, taking advantage of the Python libraries Numpy and Scipy, as well as being readily extensible with C or Fortran.
Resumo:
PySSM is a Python package that has been developed for the analysis of time series using linear Gaussian state space models (SSM). PySSM is easy to use; models can be set up quickly and efficiently and a variety of different settings are available to the user. It also takes advantage of scientific libraries Numpy and Scipy and other high level features of the Python language. PySSM is also used as a platform for interfacing between optimised and parallelised Fortran routines. These Fortran routines heavily utilise Basic Linear Algebra (BLAS) and Linear Algebra Package (LAPACK) functions for maximum performance. PySSM contains classes for filtering, classical smoothing as well as simulation smoothing.
Resumo:
Definição e estrutura de CMS. Plataformas de desenvolvimento: PHP. Java. Python; Gerenciador de Conteúdo-Plone. Comparativo de Plone com outros gerenciadores.
Resumo:
A PSS/E 32 model of a real section of the Northern Ireland electrical grid was dynamically controlled with Python 2.5. In this manner data from a proposed wide area monitoring system was simulated. The area is of interest as it is a weakly coupled distribution grid with significant distributed generation. The data was used to create an optimization and protection metric that reflected reactive power flow, voltage profile, thermal overload and voltage excursions. Step changes in the metric were introduced upon the operation of special protection systems and voltage excursions. A wide variety of grid conditions were simulated while tap changer positions and switched capacitor banks were iterated through; with the most desirable state returning the lowest optimization and protection metric. The optimized metric was compared against the metric generated from the standard system state returned by PSS/E. Various grid scenarios were explored involving an intact network and compromised networks (line loss) under summer maximum, summer minimum and winter maximum conditions. In each instance the output from the installed distributed generation is varied between 0 MW and 80 MW (120% of installed capacity). It is shown that in grid models the triggering of special protection systems is delayed by between 1 MW and 6 MW (1.5% to 9% of capacity), with 3.5 MW being the average. The optimization and protection metric gives a quantitative value for system health and demonstrates the potential efficacy of wide area monitoring for protection and control.
Resumo:
Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP)
Resumo:
Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq)
Resumo:
Context. Invasive species are a growing global problem. Biological invasions can result in numerous harmful impacts on local ecologies, and non-native herpetofauna are frequently ignored. Nile monitor lizards (Varanus niloticus) and Burmese pythons (Python molurus bivittatus, recently reassessed as Python bivittatus bivittatus), have become established in southern Florida. Both are large, semi-aquatic predators that pose serious threats to a variety of threatened and endangered species, as well as to the unique ecology of the area. Aims. Acetaminophen (CAS#103-90-2), a lethal oral toxicant for the invasive brown treesnake (Boiga irregularis) on Guam, was investigated as a possible toxicant in juvenile Burmese pythons and Nile monitors. Methods. Dead neonatal mouse (DNM) baits containing 0, 10, 20, or 40 mg acetaminophen were force-fed to Nile monitors, whereas DNM containing doses of 0, 20, 40, or 80 mg were freely consumed by Burmese pythons. Subjects were frequently observed post-treatment for general condition and position, with special attention paid to activity (if any), behaviour, respiration, bleeding, emesis, ataxia, and mortality. Key results. In Nile monitors, acetaminophen doses of 10, 20, or 40 mg resulted in 0, 50 and 100% mortality, respectively. In Burmese pythons, doses of 20, 40, or 80 mg resulted in 14.3, 85.7 and 100% mortality, respectively. No mortality was observed in control individuals of either species. A negative correlation between dosage (mg kg–1) and time-to-death was observed in both species. Dosages ranging from 522 to 2438 mg kg–1 and 263 to 703 mg kg–1 were uniformly lethal to monitors and pythons, respectively. Neither species exhibited signs of pain or discomfort following acetaminophen treatment. Conclusions. Acetaminophen is an effective toxicant in juvenile Nile monitors and Burmese pythons. Further investigation into acetaminophen toxicity in adults of these species is merited. Implications. Although further investigation into adult lethal dosages and strategies to optimize bait deployment while minimizing secondary hazards is required, acetaminophen may have a role to play in the control of these invasive species in Florida.