Created
August 15, 2020 16:37
-
-
Save dataprofessor/6d756300ed3e8f5b04a1304c789db07e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "nbformat": 4, | |
| "nbformat_minor": 0, | |
| "metadata": { | |
| "colab": { | |
| "name": "07_regression_equation.ipynb", | |
| "provenance": [], | |
| "collapsed_sections": [] | |
| }, | |
| "kernelspec": { | |
| "name": "python3", | |
| "display_name": "Python 3" | |
| } | |
| }, | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "metadata": { | |
| "id": "byUbJ9QqK5gA", | |
| "colab_type": "code", | |
| "colab": {} | |
| }, | |
| "source": [ | |
| "yintercept = '%.2f' % model.intercept_\n", | |
| "LogP = '%.2f LogP' % model.coef_[0]\n", | |
| "MW = '%.4f MW' % model.coef_[1]\n", | |
| "RB = '%.4f RB' % model.coef_[2]\n", | |
| "AP = '%.2f AP' % model.coef_[3]" | |
| ], | |
| "execution_count": null, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "metadata": { | |
| "id": "QY-9rh--S-6g", | |
| "colab_type": "code", | |
| "colab": { | |
| "base_uri": "https://localhost:8080/", | |
| "height": 34 | |
| }, | |
| "outputId": "095cefae-a92c-466d-8fb2-67abe856494f" | |
| }, | |
| "source": [ | |
| "print('LogS = ' + \n", | |
| " ' ' + \n", | |
| " yintercept + \n", | |
| " ' ' + \n", | |
| " LogP + \n", | |
| " ' ' + \n", | |
| " MW + \n", | |
| " ' + ' + \n", | |
| " RB + \n", | |
| " ' ' + \n", | |
| " AP)" | |
| ], | |
| "execution_count": null, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "text": [ | |
| "LogS = 0.31 -0.77 LogP -0.0067 MW + 0.0065 RB -0.37 AP\n" | |
| ], | |
| "name": "stdout" | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment