ML: Keras multiple input multiple output

https://colab.research.google.com/drive/1ZNLC7QMG0Y2Zf4evf6JG_L0rybzmscoj#scrollTo=lwm64LEEt5NX

Models with multiple inputs and outputs

The functional API makes it easy to manipulate multiple inputs and outputs. This cannot be handled with the Sequential API.

For example, if you’re building a system for ranking customer issue tickets by priority and routing them to the correct department, then the model will have three inputs:

  • the title of the ticket (text input),
  • the text body of the ticket (text input), and
  • any tags added by the user (categorical input)

This model will have two outputs:

  • the priority score between 0 and 1 (scalar sigmoid output), and
  • the department that should handle the ticket (softmax output over the set of departments).

num_tags = 12  # Number of unique issue tagsnum_words = 10000  # Size of vocabulary obtained when preprocessing text datanum_departments = 4  # Number of departments for predictions
title_input = keras.Input(    shape=(None,), name=”title”)  # Variable-length sequence of intsbody_input = keras.Input(shape=(None,), name=”body”)  # Variable-length sequence of intstags_input = keras.Input(    shape=(num_tags,), name=”tags”)  # Binary vectors of size `num_tags`
# Embed each word in the title into a 64-dimensional vectortitle_features = layers.Embedding(num_words, 64)(title_input)# Embed each word in the text into a 64-dimensional vectorbody_features = layers.Embedding(num_words, 64)(body_input)
# Reduce sequence of embedded words in the title into a single 128-dimensional vectortitle_features = layers.LSTM(128)(title_features)# Reduce sequence of embedded words in the body into a single 32-dimensional vectorbody_features = layers.LSTM(32)(body_features)
# Merge all available features into a single large vector via concatenationx = layers.concatenate([title_features, body_features, tags_input])
# Stick a logistic regression for priority prediction on top of the featurespriority_pred = layers.Dense(1, name=”priority”)(x)# Stick a department classifier on top of the featuresdepartment_pred = layers.Dense(num_departments, name=”department”)(x)
# Instantiate an end-to-end model predicting both priority and departmentmodel = keras.Model(    inputs=[title_input, body_input, tags_input],    outputs=[priority_pred, department_pred],)

You can build this model in a few lines with the functional API:

Metamaterial Edge and Bandpass Filters

https://www.jobs.ac.uk/job/CDG262/metamaterial-edge-and-bandpass-filters

Bangor University

Metamaterial Edge and Bandpass Filters

Bangor University – School of Computer Science and Electronic Engineering

Location:Bangor
Salary:£11,586 annual stipend
Hours:Full Time
Contract Type:Fixed-Term/Contract
Placed On:18th December 2020
Closes:11th January 2021
Job Ref:BUK2217

This project will be based in the School of Computer Science and Electronic Engineering, in collaboration with Qioptiq Ltd.

Project ID:  BUK2217

Annual Stipend: £11,586

Application Deadline: 11/01/2021

Interviews: 14/01/2021

We are seeking a highly capable and motivated graduate for this exciting opportunity to undertake a Research Masters. This is a collaborative project between Bangor University and leading photonics company Qioptiq Ltd.

This project aims at developing next-generation filters based on metamaterial design and technology, i.e. artificially engineered material with unique properties not found in nature materials. The project will focus on the development of edge and bandpass filters which are building elements of many optical products and systems, whose main function is to limit stray light found in optical systems, especially in underwater environments.

This Research Masters project is expected to start in January 2021 immediately after the interview and will take one year to complete. The KESS 2 scholar will be based in the School of Computer Science and Electronic Engineering (CSEE) and will be supervised by academic supervisors Dr James Wang and Dr Liyang Yue, and the industrial supervisor Dr. James Monks of Qioptiq. The applicant should hold a good degree (at least 2:2) in engineering, physics, optics, materials or a related scientific discipline, have demonstrably excellent research skills, and relevant experience.

For more information, or informal enquiries, please email Dr James Wang : [email protected]

To apply, please send your CV and a cover letter to [email protected] and cc to Penny Dowdney [email protected]

Knowledge Economy Skills Scholarships (KESS 2) is a pan-Wales higher level skills initiative led by Bangor University on behalf of the HE sector in Wales. It is part funded by the Welsh Government’s European Social Fund (ESF) convergence programme for West Wales and the Valleys.

Due to ESF funding, eligibility restrictions apply to this scholarship. To be eligible, the successful candidate will need to be resident in the Convergence Area of Wales on University registration, and must have the right to work in the region on qualification. 

www.kess2.ac.uk

AI: Circle fill

https://www.youtube.com/watch?v=QieXB5JHXLk

This Tutorial will show you How to Fill Your Design with Random Objects and Color using Script in Adobe Illustrator. Welcome Again, In this video, I will show you how to use three useful illustrator scripts to fill your design with objects or colors randomly. here is the script.

Place scripts in folder: C:\Program Files\Adobe\Adobe Illustrator CC 2019\Presets\en_GB\Scripts

1. Circle Fill The script fills outline shapes with packed circles. Script Link: http://www.jongware.com/binaries/Circ…

2. Replace with Symbol This script can exchange several objects with a symbol selected from the symbol panel in Illustrator. Script Link: http://bcrockett.com/blog/2016/12/cha…

3. Random Swatches Fill fill your artwork with random color Script Link : https://github.com/robotwood/Random-S… Mock Up in The Video https://www.behance.net/gallery/10249…

Hope you enjoy this tutorial, Don’t forget to leave a like and comment. Share this tutorial if you think this tutorial useful. About me – Website http://www.nobudesign.space – Instagram https://www.instagram.com/iwainobuyuki/ – Facebook http://www.facebook.com/nobuyuki006 – Background Music by LAKEY INSPIRED – That Girl https://www.youtube.com/watch?v=RlVfB… LAKEY INSPIRED channel https://www.youtube.com/channel/UCOmy…