This file contains 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
% Construction of a cobweb plot of the logistic map x_(n+1) = 2.8 * x_n * (1-x_n) | |
clear; | |
clc; | |
N = 100; | |
x = 0:1/N:1-1/N; | |
y = zeros(1, N); | |
for n = 1:N-1 | |
y(n) = 2.8*x(n)*(1-x(n)); | |
end |
This file contains 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
import logging | |
import os | |
import re | |
import scipy.sparse | |
from typing import Any, Dict, List, Optional, Text, Type, Tuple, Set | |
import rasa.shared.utils.io | |
from rasa.shared.constants import DOCS_URL_COMPONENTS | |
import rasa.utils.io as io_utils | |
from sklearn.feature_extraction.text import TfidfVectorizer |
This file contains 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
#include <iostream> | |
#include <fstream> | |
int main () { | |
std::ifstream input("data.input"); | |
if (!input) { | |
std::cout << "Input file could not be opened -- Terminating" << std::endl; | |
return 1; | |
} |
This file contains 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
import os | |
import uuid | |
import argparse | |
import pandas as pd | |
from rasa.shared.nlu.training_data.message import Message | |
from rasa.shared.nlu.training_data.training_data import TrainingData | |
def csv_to_rasa_nlu(): |
This file contains 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
import argparse | |
from rasa.shared.nlu.training_data import loading | |
def merge_nlu_data(): | |
"""Merge Rasa NLU files""" | |
parser = argparse.ArgumentParser(description="Merge Rasa NLU files") | |
parser.add_argument( |