Unsupervised learning - Building anomalous detection systems
-
You are monitoring the temperature and vibration intensity on newly manufactured aircraft engines. You have measured 100 engines and fit the Gaussian model described in the video lectures to the data. The 100 examples and the resulting distributions are shown in the figure below.
The measurements on the latest engine you are testing have a temperature of 17.5 and a vibration intensity of 48. These are shown in magenta on the figure below. What is the probability of an engine having these two measurements?
Select one:
- 0.0738 0.02288 = 0.00169
- 0.0738 + 0.02288 = 0.0966
- 17.5 + 48 = 65.5
- 17.5 48 = 840
- Correct:
-
Anomaly detection flags a new input as an anomaly if p(x) < ϵ . If we reduce the value of ϵ, what happens?
select one:
- The algorithm is more likely to classify new examples as an anomaly.
- The algorithm is less likely to classify new examples as an anomaly.
- The algorithm is more likely to classify some examples as an anomaly, and less likely to classify some examples as an anomaly. It depends on the example x.
- The algorithm will automatically choose parameters and to decrease and compensate.
- Correct
-
Say you have 5,000 examples of normal airplane engines, and 15 examples of anomalous engines. How would you use the 15 examples of anomalous engines to evaluate your anomaly detection algorithm?
Select one:
- You cannot evaluate an anomaly detection algorithm because it is an unsupervised learning algorithm.
- Because you have data of both normal and anomalous engines, don’t use anomaly detection. Use supervised learning instead.
- Use it during training by fitting one Gaussian model to the normal engines, and a different Gaussian model to the anomalous engines.
- Put the data of anomalous engines (together with some normal engines) in the cross-validation and/or test sets to measure if the learned model can correctly detect anomalous engines.
- Correct:
-
You are building a system to detect if computers in a data center are malfunctioning. You have 10,000 data points of computers functioning well, and 10,000 data points of computers malfunctioning. What type of algorithm should you use?
Select one:
- Anomaly detection
- Supervised learning
- Correct
-
You are building a system to detect if computers in a data center are malfunctioning. You have 10,000 data points of computers functioning well, and no data from computers malfunctioning. What type of algorithm should you use?
select one:
- Anomaly detection
- Supervised learning
- Correct
Applying Machine learning Practice Quiz
-
For a classification task; suppose you train three different models using three different neural network architectures. Which data do you use to evaluate the three models in order to choose the best one?
Select one:
- The cross validation set
- The test set
- All the data -- training, cross validation and test sets put together.
- The training set
-
True/False? It is always true that the better an algorithm does on the training set, the better it will do on generalizing to new data.
Select one
- True
- False
-
In the context of machine learning, what is a diagnostic?
Select one:
- This refers to the process of measuring how well a learning algorithm does on a test set (data that the algorithm was not trained on).
- A test that you run to gain insight into what is/isn’t working with a learning algorithm.
- An application of machine learning to medical applications, with the goal of diagnosing patients’ conditions.
- A process by which we quickly try as many different ways to improve an algorithm as possible, so as to see what works.
Web Development College Quiz 6
-
What license is expected for contributed modules in used Joomla?
Select one:
- a. Apache
- b. GPL
- c. PHP
- d. Commercial
-
True or False: Joomla allows multilingual support.
Select one:
- True
- False
-
True or False: Joomla modules support collaboration over competition.
Select one:
- True
- False
-
True or False: Joomla modules cannot be edited after update to 3.6.3
Select one:
- True
- False
-
What is a current version of Joomla?
Select one:
- a. 4.x
- b. 3.9.16
- c. 5.1
- d. 2.3.5
-
Joomla API stands for:
Select one:
- a. At Program Interface
- b. Application Programming Interface
- c. All Programming Initiatives
- d. Application Primary Incentive
-
What are plugins in Joomla?
Select one:
- a. Extensions
- b. Components
- c. Features
- d. Modules
-
Which extensions aren't available in used Joomla?
Select one:
- a. Features module
- b. Plugins
- c. Components
- d. Modules
-
The basic Joomla element is:
Select one:
- a. a node
- b. a component
- c. user permissions
- d. data
-
What will the value of $x be at the end of this script?
1 2 3 4 5 6
<?PHP $x=0; $x=$x+1; echo $x.” value”; $x++; ?>
Select one:
- a. 1
- b. 2
- c. 3
- d. There will be an error
-
What is an example of an open source shopping cart PHP application?
Select one:
- a. Amazon
- b. Facebook
- c. osCommerce
- d. ShopNow
-
What will be displayed by this code?
1 2 3 4 5 6 7
<?php function TEST() { ECHO "HELLO WORLD!\n"; } test(); ?>
Select one:
- a. Nothing
- b. test()
- c. Blinking text
- d. HELLO WORLD!
-
How do you join strings in PHP?
Select one:
- a. $m = “aa” + “bb”;
- b. $m = “aa” join “bb”;
- c. $m = “aa”.”bb”;
- d. $m = join(“aa”,”bb”);
-
What will this code display?
1 2 3 4 5 6 7 8
<?php $a = 1; function Test() { echo "a = $a"; } Test(); ?>
Select one:
- a. 1
- b. 3
- c. Warning or no value
- d. An error
-
What will be printed?
1 2 3
$var=’a’; $VAR=’b’; echo “$var$VAR”;
Select one:
- a. aA
- b. aa
- c. bB
- d. ab
Web Development College Quiz 5
-
What is the correct way to add 1 to the $count variable?
Select one:
- a. $count =+1
- b. ++count
- c. count+;
- d. None of the above
-
How can comments be implemented in PHP?
Select one:
- a. // commented code to the end of the line
- b. / commented code can be on multiple lines /
- c. # commented code to the end of the line
- d. All of the above
-
What will be printed?
1 2 3 4 5 6
$var = true; if ($var) { echo 'true'; } else { echo 'false'; }
Select one:
- a. false
- b. error
- c. warning
- d. true
-
What will be the value of $var?
$var = 1 / 2; Select one:
- a. 0
- b. 0.5
- c. 1
- d. 2
-
Which of the following is a valid way to start a for loop in PHP that would print out the numbers 0 through 4?
Select one:
- a. for($i < 5; $i = 0;)
- b. for($i = 0; $i < 5; $i++)
- c. for($i < 5;)
- d. for( $i < 5; $i = 0; $i++)
-
What character concatenates strings in PHP?
Select one:
- a. ;
- b. &
- c.
- d. .
-
Which one is NOT a valid PHP comparison operator?
Select one:
- a. !=
- b. <>
- c. !<
- d. ===
-
What is the valid way to start a PHP function?
Select one:
- a. function test{}
- b. function test[]
- c. def function test{}
- d. function test()
-
When installing online applications on a PHP server, what information is needed?
Select one:
- a. database username
- b. database password
- c. database host name
- d. All of the above
-
What function can you use to get the position of a string or character inside a string?
Select one:
- a. string_position()
- b. length()
- c. len()
- d. strrpos()
-
PHP variables are weekly typed, which means that:
Select one:
- a. you can’t store data in them for a long time
- b. you do not have to define their type before you initialize them
- c. strongly typed languages like Java are better
- d. strongly typed languages do not require variable definitions
-
Given that a database table has a field called FirstName, which code displays an element or field from the database record?
Select one:
- a. echo $row['FirstName'];
- b. show $row['name'];
- c. echo $row[name];
- d. echo $row(name);
-
Given the PHP code:
$row=mysql_fetch_array($r);
What type of variable is$row
? Select one:- a. string
- b. array()
- c. integer
- d. boolean
-
True or False: PHP generated PDF files can use custom fonts.
Select one:
- True
- False
-
PHP can generate PDF files based on database data, which is useful in creating reports.
Select one:
- True
- False
Web Development College Quiz 4
-
True or False: PHP can not generate images, which are diferent each time a user visits the page.
Select one:
- True
- False
-
What parameters are required in the PHP function, which issues a command or query to the database?
Select one:
- a. number
- b. boolean
- c. integer
- d. string
-
Which PHP function issues a command or query to the database?
Select one:
- a. my_query()
- b. mysql_query()
- c. mysql_query_db()
- d. sqli_query()
-
What parameters are needed to connect to a database? Select all that apply.
Select one or more:
- a. db version
- b. host name
- c. user
- d. database name
-
What PHP function sets the database name to be used out of all the databases installed on the given server?
Select one:
- a. mysql_get_db()
- b. mysqlselectdb()
- c. mysql_set_db()
- d. mysql_select( )
-
What PHP function allows a connection to MySQL database:
Select one:
- a. mysql_connect();
- b. get_connection();
- c. connect()
- d. mysql_db_connection()
-
Dynamic content on the Internet means:
Select one:
- a. Playing a video online
- b. Changing a background on a page
- c. Blinking text
- d. Changing information per visit
-
What configuration parameter determines the location of the new software?
Select one:
- a. --with-port=8080
- b. --enable-so
- c. --with-so
- d. --prefix=$HOME/apache
-
What is the correct way to add 1 to the $count variable?
Select one:
- a. $count =+1
- b. ++count
- c. count+;
- d. None of the above
-
What is the most common protocol on the Internet?
Select one:
- a. UDP
- b. FTP
- c. HTTP
- d. Internet Protocol
-
What command installs compiled code?
Select one:
- a. make complete
- b. make
- c. make install
- d. install
-
Static content on the Internet can be updated by:
Select one:
- a. Logging in and updating a page
- b. Posting a comment online
- c. Sending files via File Transfer Protocol
- d. Pressing the save button
-
Web 2.0 applications promote:
Select one:
- a. Data manipulation
- b. Collaboration
- c. FTP transfer
- d. Read-only access
-
What command can be used to edit a text file on a Linux server?
Select one:
- a. ls
- b. cat
- c. nano
- d. edit
-
What command compiles the source code?
Select one:
- a. compile
- b. make
- c. go
- d. ls
Web Development College Quiz 2
-
What is the correct way to add 1 to the $count variable?
Select one:
- a. $count =+1
- b. ++count
- c. $count++;
- d. count++;
-
What is the correct way to create a function in PHP?
Select one:
- a. new_function myFunction()
- b. function myFunction()
- c. create myFunction()
- d. create myFunction(function)
-
How do you get information from a form that is submitted using the "get" method?
Select one:
- a. `$_GET[];`
- b. Request.Form;
- c. Request.QueryString;
- d. .getParameter();
-
The PHP syntax is most similar to:
Select one:
- a. JavaScript
- b. Perl and C
- c. HTML
- d. CSS
-
True or False: In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings.
Select one:
- True
- False
-
True or False: When using the POST method, variables are displayed in the URL.
Select one:
- True
- False
-
True or False:The PHP syntax is similar to many languages including C++ and Java, which makes it easy to learn for programmers:
Select one:
- True
- False
-
What is the correct way to end a PHP statement?
Select one:
- a. </php>
- b. :
- c. .
- d. ;
-
All variables in PHP start with which symbol?
Select one:
- a. &
- b. $
- c. !
- d. --
-
How do you write "Hello World" in PHP?
Select one:
- a. Document.Write("Hello World");
- b. echo “Hello World”;
- c. “Hello World”
- d. system.out.println(“Hello World”);
-
PHP server scripts are surrounded by what delimiters?
Select one:
- a. <&></&>
- b. <?PHP ?>
- c. <?PHP > </?>
- d. ```<__no__>><__no__>>```
-
What command extracts a tarball archive file?
Select one:
- a. tar -xzvf
- b. tar -czvf
- c. tar -out
- d. tar -v
-
What is the most common extension for a source code package?
Select one:
- a. .zip
- b. .tgz
- c. .txt
- d. .os
-
True or False: Apache is called httpd on a Linux server.
Select one:
- True
- False
Web Development College Quiz 3
-
What does the “cd” command do?
Select one:
- a. Displays current directory
- b. Lists the contents of a directory
- c. Opens the CD ROM
- d. Changes current directory
-
Social networks are part of which Internet era?
Select one:
- a. Web 1.0
- b. ARPA
- c. Web 2.0
- d. Web 3.0
-
What feature of Drupal allows administrators to customize the system and make it do new things?
Select one:
- a. modules
- b. plugins
- c. PHP development
- d. coDrupal
-
What feature of Drupal makes the look of the system flexible?
Select one:
- a. artwork
- b. themes
- c. graphics
- d. design
-
True or False: Drupal can store files, which are then available to visitors for download.
Select one:
- True
- False
-
True or False: Drupal can be used at small organizations.
Select one:
- True
- False
-
True or False: Drupal cannot be used for large organizations.
Select one:
- True
- False
-
What feature allows users to modify content in Drupal?
Select one:
- a. interoperability
- b. integration
- c. integer
- d. authentication
-
What major organization runs Drupal as their CMS?
Select one:
- a. facebook.com
- b. whitehouse.gov
- c. amazon.com
- d. oracle.com
-
What file types is Drupal distributed in? Check all that apply.
Select one or more:
- a. php
- b. .tgz
- c. .zip
- d. .txt
-
What language is Drupal written in?
Select one:
- a. ASP
- b. PHP
- c. C++
- d. Java
-
What systems allow efficient web site management?
Select one:
- a. CMS
- b. LMS
- c. ERP
- d. CRM
-
PHP script can perform the following functions:
Select one:
- a. Generate an email to one or more receipients.
- b. Insert data into a database
- c. Display data from a database
- d. All of the above
-
Identify a valid PHP variable:
Select one:
- a. x
- b. x$
- c. $x
- d. $x$
-
What is a correct way to add a comment in PHP?
Select one:
- a. `<comment> </comment>`
- b. `<!-- -->`
- c. `\ \`
- d. `/ / `
Web Development College Quiz 1
-
True or False: Software can be compiled at the command prompt.
Select one:
- True
- False
-
True or False: Source code can be executed.
Select one:
- True
- False
-
What Linux command downloads source code?
Select one:
- a. mput
- b. get
- c. Internet Explorer
- d. wget
-
What commands can be used on a Linux server?
Select one or more:
- a. putty.exe
- b. ls
- c. make
- d. Click on Start button
-
What program can be used on a Windows computer to access a command prompt on a Unix/Linux server?
Select one:
- a. putty.exe
- b. SQL Server
- c. cmd
- d. Internet Explorer
-
The speed of writing server code is increased when:
Select one:
- a. The developer receives immediate feedback upon making changes
- b. The software is compiled before it is executed
- c. The developer uses discussion forums to debug code
- d. The software interpreted and error reporting is turned of
-
Select an example of a server-side programming language:
Select one:
- a. JavaScript
- b. Perl
- c. HTML
- d. CSS
-
True or False: Server-side programming uses some of the same languages as client-side (workstation) programming.
Select one:
- True
- False
-
True or False: Server-side programming allows users to login to web sites and generate content each time the page is visited.
Select one:
- True
- False
-
True or False: Most of the web sites today are Web 2.0.
Select one:
- True
- False
-
What is a good example of static Internet content?
Select one:
- a. CNN news page
- b. Yahoo home page
- c. Facebook Wall
- d. None of the above
-
Which database in the list is Open Source?
Select one:
- a. SQL Server
- b. MySQL
- c. Oracle
- d. Apache
-
What are examples of a scripted language? Choose all that apply.
Select one or more:
- a. C++
- b. PHP
- c. Perl
- d. Objective-C
-
What are advantages of scripted applications over compiled applications? Choose all that apply.
Select one or more:
- a. performance
- b. readability
- c. maintainability
- d. functionality
-
What is the name given to Internet technologies supporting user collaboration and data exchange?
Select one:
- a. Web 2.0
- b. SQL Server
- c. Mobile technology
- d. Android
Big Data Practice College Quiz 2 Questions
-
Of the alternatives to Hadoop noted below, which claims to be more flexible and removes the limits on the number of files processed?
- a.CEPH
- b.ZFS
- c.HBase
- d.Cassandra
-
The following are cluster mangers except:
Select one:
- a.YARN
- b.Standalone deployment
- c.Groovy
- d.Apache Mesos
-
You are working on a Big Data analytics team and need to select an application that will allow for faster processing of a large amount of data. You want that processing to happen mostly in memory using a computing engine that allows for running most of those computations in memory. Which Big data tool is best suited in this context?
Select one
- a.Apache Spark
- b.HADOOP
- c.MangoDB
- d.Apache Kafka