Tag:python

  • Anaconda3 on MAC switches Python version at will, and installs tensorflow (CPU) for different Python versions

    Time:2019-12-9

    First, download the corresponding version of anaconda3 on the official website of Anaconda Install anaconda3 Open anaconda3, click environments on the left side of the interface, and then click create to open the following window Name the python environment to be created and select the version. Click create to generate a new Python version environment, […]

  • Python Standard Library — 8. Built in constant

    Time:2019-12-9

    Previous article: Python Standard Library — 7, built-in function (v-w-x-y-z)Next article: Python Standard Library — 9. Built in types: logical value detection, Boolean operation, comparison Built in constant A few constants exist in the built-in namespace. They are: 1. False False value of type bool. Assigning a value to false is illegal and raises a […]

  • Best in-depth study list in 2018

    Time:2019-12-9

    Abstract: AI talent gap is huge? If you want to be part of the AI revolution, then you have to study in depth. Look at these 12 books, they will be your weapon! I believe you should know that AI, especially deep learning, has made good progress in the past five years or so. Deep […]

  • Djongo: Django and mongodb connectors

    Time:2019-12-9

    Mongodb is used as the back-end database in Django project, and the ORM framework of Django is not changed. Realize the addition and modification of files in mongodb database by Django user management program. usage 1.pip install djongo 2. Add the following code to setting.py under Django project: DATABASES ={ ‘default’:{ ‘ENGINE:’djongo’, ‘NAME’:’your-db-name’, } } […]

  • Flash tutorial template

    Time:2019-12-9

    We can make functions bound to a URL return HTML. For example, in the following code,hello()The function returns the<h1>Hello World string of the package from flask import Flask app = Flask(__name__) @app.route(‘/’) def index(): return ‘<html><body><h1>Hello World'</h1></body></html>’ if __name__ == ‘__main__’: app.run(debug = True) But you can see that it’s stupid to directly return HTML […]

  • Time series prediction — da-rnn model

    Time:2019-12-8

    Time series prediction — da-rnn model Author: Mei Haoming 1. Background The traditional nonlinear autoregressive model (nrax) for time series prediction is difficult to capture the data betweenTemporal correlationAnd selectSelect the corresponding driving dataTo make predictions. This paper introduces a time series prediction method based on seq2seq model (encoder decoder model) and attention mechanism. A […]

  • Python Standard Library — 9. Built in types: logical value detection, Boolean operation, comparison

    Time:2019-12-8

    Previous article: Python Standard Library — 8. Built in constantNext article: Python Standard Library — 10. Built in type: number type Built-in type The following section describes the standard types built into the interpreter. The main built-in types are numbers, sequences, maps, classes, instances, and exceptions. Some polyset classes are mutable. The methods they use […]

  • Leetcode plus one (Java, python3)

    Time:2019-12-8

    add one-tenth Given a byintegerComposedNot emptyThe nonnegative integer represented by an array. Add one to the number. The highest number is placed at the top of the array, and each element of the array only stores one number. You can assume that except for the integer 0, this integer does not start with zero. Given […]

  • The third of Python’s parent parser series: generating a peg parser

    Time:2019-12-8

    Original question | Generating a PEG Parser author|Guido van Rossum (father of Python) TranslatorPea flower cat (Python cat public number writer) statement|This translation is for the purpose of communication and learning, based on CC by-nc-sa 4.0 license agreement. For the convenience of reading, the content is slightly changed. First address: https://mp.weixin.qq.com/s/oj I’ve outlined the parser […]

  • Using Django to manage the existing database

    Time:2019-12-8

    In most projects, there are always some almost invariable CRUD operations. It is boring to write these codes, but it is also one of the essential functions of the whole system. We also faced similar problems in the previous project. Although a relatively complete management background has been realized and code reuse has been achieved […]

  • Python flask single sign on problem

    Time:2019-12-8

    1.What is single sign on? Single sign on, or SSO for short, is one of the more popular solutions for enterprise business integration. SSO is defined as that in multiple application systems, users only need to log in once to access all mutual trust application systems.The client holds the ID, and the server holds the […]

  • Compilation and problem solving of GDAL in CentOS 7.4, Anaconda 3, python 3.6, tensorflow

    Time:2019-12-8

    Compilation and problem solving of GDAL in CentOS 7.4, Anaconda 3, python 3.6, tensorflow This is an additional package that GDAL may use. Compile it in advance according to your own needs.Here, I mainly use proj, LibTiff, GeoTIFF, GEOS, HDF5, which can basically meet the needs Installation steps Create a new installation directory: cd /home/Elam […]