How to build a simple image/primary-colour similarity database
A Neural Network in 11 lines of Python
| "keywords": [ | |
| "\u0433\u043b\u043e\u0431\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f", | |
| "\u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0430\u043", | |
| "\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d" | |
| ] | 
| test_schemas.py ..> /home/rajat/src/zenodo/tests/unit/records/test_schemas.py(46)test_recid() | |
| 45 ipdb.set_trace() | |
| ---> 46 minimal_record['recid'] = '123' | |
| 47 exc = pytest.raises(ValidationError, Record.create, minimal_record) | |
| ipdb> s | |
| > /home/rajat/src/zenodo/tests/unit/records/test_schemas.py(47)test_recid() | |
| 46 minimal_record['recid'] = '123' | |
| ---> 47 exc = pytest.raises(ValidationError, Record.create, minimal_record) | |
| 48 assert exc.value.message == "'recid' is not of type 'object'" | 
| ConnectionError: ConnectionError(HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /funders-funder-v1.0.0 | |
| (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fd2cfea5d90>: Failed to establish a new connection: [Errno 111] Connection refused',))) caused by: ConnectionError(HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with | |
| url: /funders-funder-v1.0.0 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fd2cfea5d90>: Failed to establish a new connection: [Errno 111] Connection refused',)) | 
| Building bundle: gen/search.%(version)s.js | |
| Failed, error was: requirejs: subprocess returned a non-success result code: 1, stdout=, stderr= | |
| Building bundle: gen/zenodo.search.%(version)s.js | |
| Failed, error was: requirejs: subprocess returned a non-success result code: 1, stdout=, stderr= | |
| Building bundle: gen/styles.%(version)s.css | |
| Traceback (most recent call last): | |
| File "/home/rajat/Envs/zenodo/bin/zenodo", line 11, in <module> | |
| load_entry_point('zenodo', 'console_scripts', 'zenodo')() | |
| File "/home/rajat/Envs/zenodo/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__ | |
| return self.main(*args, **kwargs) | 
| from __future__ import absolute_import, print_function | |
| import json | |
| import os | |
| import shutil | |
| import tempfile | |
| from copy import deepcopy | |
| from datetime import date, datetime, timedelta | |
| from uuid import UUID, uuid4 | 
| /** | |
| * This method displays the given price on the screen. | |
| */ | |
| private void displayPrice(int number) { | |
| TextView priceTextView = (TextView) findViewById(R.id.price_text_view); | |
| priceTextView.setText(NumberFormat.getCurrencyInstance().format(number)); | |
| } | 
| package com.example.android.justjava; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.view.View; | |
| import android.widget.TextView; | |
| /** | |
| * This app displays an order form to order coffee. | |
| */ | 
| <ImageView | |
| android:src="@drawable/android" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:scaleType="centerCrop"/> |