text:
layout: page
title: Janice Choi's 39th Birthday
date: 2016-05-24
author: Bobby Santos
tags: weekly links, java
status: published
summary: Suspendisse lacus lacus, vehicula eu ante eget, interdum.
banner: images/banner/office-01.jpg
booking:
  startDate: 05/03/2019
  endDate: 05/04/2019
  ctyhocn: YVRRHHX
  groupCode: JC3B
published: true
---
Nam rutrum diam a tellus facilisis tincidunt. Nullam vehicula vitae felis sed fermentum. Sed vehicula vehicula posuere. Donec suscipit nulla a odio ultrices tempus. Morbi interdum gravida libero, ornare laoreet eros pellentesque et. Curabitur vestibulum purus neque, et efficitur metus molestie sed. Vivamus dapibus, sem sed condimentum lobortis, felis velit porta diam, quis dignissim nibh metus semper felis. Fusce consectetur mi nec libero sagittis ullamcorper at facilisis metus. Etiam pulvinar enim vitae arcu viverra tincidunt. Praesent fermentum, leo at pellentesque sagittis, nisl diam accumsan urna, at dictum nulla lorem ac eros. Sed quis vestibulum sapien. Nulla aliquet, mi vitae dictum viverra, lectus sem feugiat velit, et faucibus tortor mi lobortis risus. Fusce dictum arcu congue magna pharetra sollicitudin.

1 Integer id turpis et nunc maximus sodales ut a odio
1 Etiam aliquet mi ac augue interdum dictum
1 Vivamus non urna porttitor, sodales justo sed, laoreet lectus
1 Nulla in odio rhoncus ipsum rhoncus tincidunt
1 Aliquam ut neque eu lorem tristique dapibus in ut ipsum
1 Phasellus euismod augue sit amet ex pulvinar, in ullamcorper enim hendrerit.

Nulla facilisi. Vestibulum a lacus quis magna molestie varius non vitae ex. Ut porttitor tincidunt metus quis dignissim. Praesent ut nibh at ipsum sollicitudin lobortis ac id leo. Donec egestas ex lacinia eros congue volutpat. Donec pretium augue ultrices viverra pellentesque. Curabitur fringilla vitae magna vel iaculis. Curabitur a ligula ac velit vestibulum tempus id eget massa. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In hac habitasse platea dictumst. Vivamus luctus cursus ex, sed fermentum sapien tristique vel. Duis tempus ligula in libero lacinia finibus. Vivamus nec nunc rhoncus orci dapibus placerat.


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>statsmodels.discrete.discrete_model.MultinomialResults — statsmodels 0.6.1 documentation</title>

    <link rel="stylesheet" href="../_static/nature.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

    <link rel="shortcut icon" href="../_static/statsmodels_hybi_favico.ico"/>
    <link rel="author" title="About these documents" href="../about.html" />
    <link rel="top" title="statsmodels 0.6.1 documentation" href="../index.html" />
    <link rel="up" title="Regression with Discrete Dependent Variable" href="../discretemod.html" />
    <link rel="next" title="statsmodels.discrete.discrete_model.MultinomialResults.aic" href="statsmodels.discrete.discrete_model.MultinomialResults.aic.html" />
    <link rel="prev" title="statsmodels.discrete.discrete_model.CountResults.summary2" href="statsmodels.discrete.discrete_model.CountResults.summary2.html" />
<link rel="stylesheet" href="../../_static/facebox.css" type="text/css" />
<link rel="stylesheet" href="../_static/examples.css" type="text/css" />

Navigation

          index

          next |

          previous |

Install
  |

Support
  |

Bugs
  |

Develop
  |

Examples
  |

FAQ
  |

Regression with Discrete Dependent Variable |

statsmodels.discrete.discrete_model.MultinomialResults¶

class statsmodels.discrete.discrete_model.MultinomialResults(model, mlefit, cov_type='nonrobust', cov_kwds=None, use_t=None)[source]¶

A results class for multinomial data

<col class="field-name" />
<col class="field-body" />

Parameters:
model : A DiscreteModel instance

params : array-like

The parameters of a fitted model.

hessian : array-like

The hessian of the fitted model.

scale : float

A scale parameter for the covariance matrix.

Returns:
Attributes

aic : float

Akaike information criterion.  -2*(llf - p) where p is the number
of regressors including the intercept.

bic : float

Bayesian information criterion. -2*llf + ln(nobs)*p where p is the
number of regressors including the intercept.

bse : array

The standard errors of the coefficients.

df_resid : float

See model definition.

df_model : float

See model definition.

fitted_values : array

Linear predictor XB.

llf : float

Value of the loglikelihood

llnull : float

Value of the constant-only loglikelihood

llr : float

Likelihood ratio chi-squared statistic; -2*(llnull - llf)

llr_pvalue : float

The chi-squared probability of getting a log-likelihood ratio
statistic greater than llr.  llr has a chi-squared distribution
with degrees of freedom df_model.

prsquared : float

McFadden’s pseudo-R-squared. 1 - (llf / llnull)

Methods

<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>

aic()

bic()

bse()

conf_int([alpha, cols])

fittedvalues()

get_margeff([at, method, atexog, dummy, count])
Get marginal effects of the fitted model.

llnull()

llr()

llr_pvalue()

margeff()

pred_table()
Returns the J x J prediction table.

prsquared()

resid_misclassified()
Residuals indicating which observations are misclassified.

summary([yname, xname, title, alpha, yname_list])
Summarize the Regression Results

summary2([alpha, float_format])
Experimental function to summarize regression results

Attributes

<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>

use_t

Previous topic

statsmodels.discrete.discrete_model.CountResults.summary2

Next topic

statsmodels.discrete.discrete_model.MultinomialResults.aic

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>

    Enter search terms or a module, class or function name.

        © Copyright 2009-2013, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers.
      Created using Sphinx 1.3.1.

redpajama_set_name: RedPajamaGithub


text:
 ol.list {
    list-style-type: none;
    margin: 0;
    margin-left: 3em;
    padding: 0;
    counter-reset: li-counter;
}
ol.list > li{
    position: relative;
    margin-bottom: 10px;
    padding-left: 0.5em;
    min-height: 1.5em;
    border-left: 2px solid #CCCCCC;
}

ol.list > li:before {
    position: absolute;
    top: 0;
    left: -1em;
    width: 0.8em;

    font-size: 1.5em;
    line-height: 1;
    font-weight: bold;
    text-align: right;
    color: #464646;

    content: counter(li-counter);
    counter-increment: li-counter;
}

.currency_select {
    height: 35px !important;
    border: solid 1px #CCCCCC;
    border-radius: 5px;
}
#currency_amount {
    height: 35px !important;
    border: solid 1px #CCCCCC;
    border-radius: 5px;
    padding-left: 5px;
}
#toCurrency_result {
    height: 35px !important;
    padding: 0 !important;
    line-height: 34px;
}
#toCurrency_result p {
    margin-left: 10px;
}


text:
namespace onnxruntime {

namespace cuda {

void DiagonalImpl(
    cudaStream_t stream,
    const void* input_data,
    const int64_t input_rank,
    const int64_t dim_1,
    const int64_t dim_2,
    const TArray<int64_t> input_strides,
    void* output_data,
    const TArray<fast_divmod> output_strides,
    const size_t output_size,
    size_t element_size);

}  // namespace cuda

}  // namespace onnxruntime


text:
package com.carbon108.tilde;

import org.junit.Before;
import org.junit.Rule;
import org.junit.rules.ExpectedException;

/**
 * @author K Moroz
 * @version 1.0
 */
public class TildeModelLegalInputTest {

	private TildeModel model;

	@Rule
	public final ExpectedException exception = ExpectedException.none();

	@Before
	public void setUp() {
		model = new DummyModel();
	}

}


text:
require 'tmpdir'

def create_tmpdir
  tmpdir = Dir.mktmpdir
  FileUtils.cp_r(File.join(File.dirname(__FILE__), '../data'), tmpdir)
  tmpdir + '/data/'
end

def rm_tmp(tmpdir)
  FileUtils.remove_entry_secure(File.dirname(tmpdir))
end


text:
<?php

namespace Dwf\PronosticsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Scorer
 *
 * @ORM\HasLifecycleCallbacks
 * @ORM\Table("scorers")
 * @ORM\Entity(repositoryClass="Dwf\PronosticsBundle\Entity\ScorerRepository")
 */
class Scorer
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Event
     *
     * @ORM\ManyToOne(targetEntity="Event")
     * @ORM\JoinColumn(name="event", referencedColumnName="id")
     */
    private $event;

    /**
     * @var Player
     *
     * @ORM\ManyToOne(targetEntity="Player")
     * @ORM\JoinColumn(name="player", referencedColumnName="id")
     */
    private $player;

    /**
     * @var Game
     *
     * @ORM\ManyToOne(targetEntity="Dwf\PronosticsBundle\Entity\Game", inversedBy="scorers")
     * @ORM\JoinColumn(nullable=false, name="game", referencedColumnName="id")
     */
    private $game;

    /**
     * @var integer
     *
     * @ORM\Column(name="score", type="integer")
     */
    private $score;

    /**
     * @var boolean
     *
     * @ORM\Column(name="owngoal", type="boolean", nullable=true)
     */
    private $owngoal = false;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set team
     *
     * @param \Dwf\PronosticsBundle\Entity\Team $team
     * @return Player
     */
    public function setTeam(\Dwf\PronosticsBundle\Entity\Team $team = null)
    {
        $this->team = $team;

        return $this;
    }

    /**
     * Get team
     *
     * @return \Dwf\PronosticsBundle\Entity\Team
     */
    public function getTeam()
    {
        return $this->team;
    }

    /**
     * Set score
     *
     * @param integer $score
     * @return Scorer
     */
    public function setScore($score)
    {
        $this->score = $score;

        return $this;
    }

    /**
     * Get score
     *
     * @return integer
     */
    public function getScore()
    {
        return $this->score;
    }

    /**
     * Set owngoal
     *
     * @param boolean $owngoal
     * @return Scorer
     */
    public function setOwngoal($owngoal)
    {
    	$this->owngoal = $owngoal;

    	return $this;
    }

    /**
     * Get owngoal
     *
     * @return boolean
     */
    public function getOwngoal()
    {
    	return $this->owngoal;
    }

    /**
     * Set event
     *
     * @param \Dwf\PronosticsBundle\Entity\Event $event
     * @return Scorer
     */
    public function setEvent(\Dwf\PronosticsBundle\Entity\Event $event = null)
    {
        $this->event = $event;

        return $this;
    }

    /**
     * Get event
     *
     * @return \Dwf\PronosticsBundle\Entity\Event
     */
    public function getEvent()
    {
        return $this->event;
    }

    /**
     * Set player
     *
     * @param \Dwf\PronosticsBundle\Entity\Player $player
     * @return Scorer
     */
    public function setPlayer(\Dwf\PronosticsBundle\Entity\Player $player = null)
    {
        $this->player = $player;

        return $this;
    }

    /**
     * Get player
     *
     * @return \Dwf\PronosticsBundle\Entity\Player
     */
    public function getPlayer()
    {
        return $this->player;
    }

    /**
     * Set game
     *
     * @param \Dwf\PronosticsBundle\Entity\Game $game
     * @return Scorer
     */
    public function setGame(\Dwf\PronosticsBundle\Entity\Game $game = null)
    {
        $this->game = $game;

        return $this;
    }

    /**
     * Get game
     *
     * @return \Dwf\PronosticsBundle\Entity\Game
     */
    public function getGame()
    {
        return $this->game;
    }
}


text:
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package admanager.axis.v202208.companyservice;

import static com.google.api.ads.common.lib.utils.Builder.DEFAULT_CONFIGURATION_FILENAME;

import com.beust.jcommander.Parameter;
import com.google.api.ads.admanager.axis.factory.AdManagerServices;
import com.google.api.ads.admanager.axis.utils.v202208.StatementBuilder;
import com.google.api.ads.admanager.axis.v202208.ApiError;
import com.google.api.ads.admanager.axis.v202208.ApiException;
import com.google.api.ads.admanager.axis.v202208.Company;
import com.google.api.ads.admanager.axis.v202208.CompanyPage;
import com.google.api.ads.admanager.axis.v202208.CompanyServiceInterface;
import com.google.api.ads.admanager.lib.client.AdManagerSession;
import com.google.api.ads.admanager.lib.utils.examples.ArgumentNames;
import com.google.api.ads.common.lib.auth.OfflineCredentials;
import com.google.api.ads.common.lib.auth.OfflineCredentials.Api;
import com.google.api.ads.common.lib.conf.ConfigurationLoadException;
import com.google.api.ads.common.lib.exception.OAuthException;
import com.google.api.ads.common.lib.exception.ValidationException;
import com.google.api.ads.common.lib.utils.examples.CodeSampleParams;
import com.google.api.client.auth.oauth2.Credential;
import com.google.common.collect.Iterables;
import java.rmi.RemoteException;
import java.util.Arrays;

/**
 * This example updates company comments. To determine which companies exist, run
 * GetAllCompanies.java.
 *
 * <p>Credentials and properties in {@code fromFile()} are pulled from the "ads.properties" file.
 * See README for more info.
 */
public class UpdateCompanies {

  private static class UpdateCompaniesParams extends CodeSampleParams {
    @Parameter(
        names = ArgumentNames.COMPANY_ID,
        required = true,
        description = "The ID of the company to update.")
    private Long companyId;
  }

  /**
   * Runs the example.
   *
   * @param adManagerServices the services factory.
   * @param session the session.
   * @param companyId the ID of the company to update.
   * @throws ApiException if the API request failed with one or more service errors.
   * @throws RemoteException if the API request failed due to other errors.
   */
  public static void runExample(
      AdManagerServices adManagerServices, AdManagerSession session, long companyId)
      throws RemoteException {
    // Get the CompanyService.
    CompanyServiceInterface companyService =
        adManagerServices.get(session, CompanyServiceInterface.class);

    // Create a statement to only select a single company by ID.
    StatementBuilder statementBuilder =
        new StatementBuilder()
            .where("id = :id")
            .orderBy("id ASC")
            .limit(1)
            .withBindVariableValue("id", companyId);

    // Get the company.
    CompanyPage page = companyService.getCompaniesByStatement(statementBuilder.toStatement());

    Company company = Iterables.getOnlyElement(Arrays.asList(page.getResults()));

    // Update the comment.
    company.setComment(company.getComment() + " Updated.");

    // Update the company on the server.
    Company[] companies = companyService.updateCompanies(new Company[] {company});

    for (Company updatedCompany : companies) {
      System.out.printf(
          "Company with ID %d, name '%s', and comment '%s' was updated.%n",
          updatedCompany.getId(), updatedCompany.getName(), updatedCompany.getComment());
    }
  }

  public static void main(String[] args) {
    AdManagerSession session;
    try {
      // Generate a refreshable OAuth2 credential.
      Credential oAuth2Credential =
          new OfflineCredentials.Builder()
              .forApi(Api.AD_MANAGER)
              .fromFile()
              .build()
              .generateCredential();

      // Construct a AdManagerSession.
      session =
          new AdManagerSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();
    } catch (ConfigurationLoadException cle) {
      System.err.printf(
          "Failed to load configuration from the %s file. Exception: %s%n",
          DEFAULT_CONFIGURATION_FILENAME, cle);
      return;
    } catch (ValidationException ve) {
      System.err.printf(
          "Invalid configuration in the %s file. Exception: %s%n",
          DEFAULT_CONFIGURATION_FILENAME, ve);
      return;
    } catch (OAuthException oe) {
      System.err.printf(
          "Failed to create OAuth credentials. Check OAuth settings in the %s file. "
              + "Exception: %s%n",
          DEFAULT_CONFIGURATION_FILENAME, oe);
      return;
    }

    AdManagerServices adManagerServices = new AdManagerServices();

    UpdateCompaniesParams params = new UpdateCompaniesParams();
    if (!params.parseArguments(args)) {
      // Either pass the required parameters for this example on the command line, or insert them
      // into the code here. See the parameter class definition above for descriptions.
      params.companyId = Long.parseLong("INSERT_COMPANY_ID_HERE");
    }

    try {
      runExample(adManagerServices, session, params.companyId);
    } catch (ApiException apiException) {
      // ApiException is the base class for most exceptions thrown by an API request. Instances
      // of this exception have a message and a collection of ApiErrors that indicate the
      // type and underlying cause of the exception. Every exception object in the admanager.axis
      // packages will return a meaningful value from toString
      //
      // ApiException extends RemoteException, so this catch block must appear before the
      // catch block for RemoteException.
      System.err.println("Request failed due to ApiException. Underlying ApiErrors:");
      if (apiException.getErrors() != null) {
        int i = 0;
        for (ApiError apiError : apiException.getErrors()) {
          System.err.printf("  Error %d: %s%n", i++, apiError);
        }
      }
    } catch (RemoteException re) {
      System.err.printf("Request failed unexpectedly due to RemoteException: %s%n", re);
    }
  }
}


text:
package cn.rongcloud.im.server.utils;

import android.content.Context;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by AMing on 15/12/21.
 * Company RongCloud
 */
public class AMUtils {

    /**
     * 手机号正则表达式
     **/
    public final static String MOBLIE_PHONE_PATTERN = "^((13[0-9])|(15[0-9])|(18[0-9])|(14[7])|(17[0|3|6|7|8]))\\d{8}$";

    /**
     * 通过正则验证是否是合法手机号码
     *
     * @param phoneNumber
     * @return
     */
    public static boolean isMobile(String phoneNumber) {
        Pattern p = Pattern.compile(MOBLIE_PHONE_PATTERN);
        Matcher m = p.matcher(phoneNumber);
        return m.matches();
    }

    public static void onInactive(Context context, EditText et) {

        if (et == null)
            return;

        et.clearFocus();
        InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(et.getWindowToken(), 0);
    }

    public static void onActive(Context context, EditText et) {
        if (et == null)
            return;

        et.requestFocus();
        InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.showSoftInput(et, 0);

    }
}


text:
Someone has invited you to join a Loomio group! Here are the essential things you can do to get off to a good start.

If you're not sure what Loomio is, check out ["What is Loomio?"](overview.md).

## Have a look around
Give yourself a tour by clicking around the app. Down the left is your *sidebar*, which gives you links to your groups, discussions, and decisions.

## Add your profile photo 👩🏽
Reading text on a screen can be a bit impersonal. Make things friendlier by adding a profile photo to give a face to your name. (If you're not comfortable showing your face, pick any image to represent you.)

To change your profile picture, click *"edit profile"* on the sidebar.

## Configure your email settings 📬

Email notifications are the main way Loomio keeps you updated on what's happening in your group.

By default, we email you most of the activity on Loomio as it happens. This helps to keep people engaged in the early stages of a group, but can get overwhelming if there is a lot of activity.

You can be emailed about all activity, only important activity, or keep up to date with daily summary emails. Or you can turn off emails entirely. It's up to you.

Visit the [email settings](https://www.loomio.org/email_preferences) to configure the email settings to suit your preferences. This page is linked from the sidebar.

## Is anyone missing? 🔍

Check the members list on your Loomio group page. Are people missing? Click "invite people" to add them. Give them a phone call or an email to make sure they got their invitation.

## Say "Hello" 👋🏽
Every Loomio group starts off with an Introductions thread. This is a place where you can say hello. Share why you've joined the group, and tell people something about yourself so they can understand you a bit better.

## This is *your* group
Discussions and Proposals are invitations to use your voice. It's ok to change your mind. It's ok to be unsure. Your perspective is valued — that's why you've been invited to the group!

Loomio is about participation, so find your unique way to contribute to ongoing threads. And when you feel comfortable, think about starting discussions and proposals of your own.


text:
package main

import (
	"github.com/kr/pretty"
	"github.com/tikiatua/nsq-adapter"
)

const (
	nsqlookupd string = "192.168.99.100:4161"
)

func main() {

	// create a new nsqadapter
	queue := nsqAdapter.New("test-arena-repository", nsqlookupd)

	// subscribe to our repository channel
	repositoryChan := make(chan nsqAdapter.Message)
	queue.Subscribe("test-arena-repository", "requests", repositoryChan)

	// handle all messages
	for {
		message := <-repositoryChan
		pretty.Println("RECEIVED:", message.Payload)

		if message.MessageType == nsqAdapter.MessageTypeRequest {
			queue.RespondTo(message, message.Payload.(string)+"-from-repository")
		}
	}
}