Here is code written in the Haskell programming language that prints the numbers 1 through 20.
mapM_ (\i -> putStrLn (show i)) [1..20]
In other words, the output of running this program is
import requests | |
# Replace with your API key, which you can find at https://app.surgehq.ai/me. | |
API_KEY = "ABCDEF" | |
# Replace with your project's ID. | |
PROJECT_ID = "XYZ" | |
# Retrieve the project (assuming you previously created it). | |
response = requests.get("https://app.surgehq.ai/api/projects/%s" % PROJECT_ID, | |
auth = (API_KEY, "") |
''' | |
Using Bottleneck Features for Multi-Class Classification in Keras | |
We use this technique to build powerful (high accuracy without overfitting) Image Classification systems with small | |
amount of training data. | |
The full tutorial to get this code working can be found at the "Codes of Interest" Brog at the following link, | |
http://www.codesofinterest.com/2017/08/bottleneck-features-multi-class-classification-keras.html | |
Please go through the tutorial before attrmpting to run this code, as it explains how to setup your training data. |
class BookCrossing(args : Args) extends VectorSimilarities(args) { | |
override def input(userField : Symbol, itemField : Symbol, ratingField : Symbol) : Pipe = { | |
val bookCrossingRatings = | |
Tsv("book-crossing-ratings.tsv") | |
.read | |
.mapTo((0, 1, 2) -> (userField, itemField, ratingField)) { fields : (String, String, Double) => fields } | |
bookCrossingRatings | |
} | |
} |
Agricultural Production-Crops | |
Agricultural Prod-Livestock & Animal Specialties | |
Agricultural Services | |
Forestry | |
Fishing, Hunting and Trapping | |
Metal Mining | |
Gold and Silver Ores | |
Miscellaneous Metal Ores | |
Bituminous Coal & Lignite Mining | |
Bituminous Coal & Lignite Surface Mining |
Afghanistan | |
Åland Islands | |
Albania | |
Algeria | |
American Samoa | |
Andorra | |
Angola | |
Anguilla | |
Antarctica | |
Antigua and Barbuda |
Afghanistan | |
Åland Islands | |
Albania | |
Algeria | |
American Samoa | |
Andorra | |
Angola | |
Anguilla | |
Antarctica | |
Antigua and Barbuda |